Question : storing multiple image in one field

I want to be able to upload file and store the images into file server and sql will record the path of the images. Also I am able to store multiple images, not just one. Sometimes it can be 10 or 20 or more.

Can someone show me a code for doing this in php?

Thanks

Answer : storing multiple image in one field

If you're only storing the image path(s) in the database, you could just delimit each path, then split it on the way back out:

Into db:
/www/site/images/1.png|/www/site/images/2.png|/www/site/images/3.png|/www/site/images/4.png

Out from db:
$paths = explode("|", $dbvalue);

Or preferably modify your database schema to account for the feature properly.
Random Solutions  
 
programming4us programming4us