Mutiple image upload

Ask about a PHP problem here.
Post Reply
kpkguru003
Posts: 14
Joined: Fri Nov 11, 2011 12:32 pm
Location: India

Mutiple image upload

Post by kpkguru003 »

guys can anyone teach me to upload multiple images(5 images) and store it in a database.. and to display it !

and those images should move to the upload directory :shock:
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Mutiple image upload

Post by Temor »

Jacek has a tutorial on this.

Part 0


Part 1

What you want to do is perform a query in the foreach loop to insert the image name and / or location into your table at the same time you're uploading the image.

You'd also want to make sure that it really is an image to prevent people from uploading malicious stuff.
Post Reply