Page 1 of 1

Mutiple image upload

Posted: Sat Apr 14, 2012 1:51 pm
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:

Re: Mutiple image upload

Posted: Sun Apr 15, 2012 1:40 pm
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.