Solarpitch Posted September 11, 2007 Share Posted September 11, 2007 Hi, I am currently developing a site that involves user's being able to upload images as part of an ad. (Items there selling) I want to allow each user to upload up to 5 images. I understand storing the path for one image but how is this achieved for multiple images. Also, whats the best way to approach the layout for the form that will allow the user to upload images. Is something like the way gmail does it where you click browse and a new file field appears. Or is there even someting than I can integrate with my own site? Regards, Gerard. Link to comment https://forums.phpfreaks.com/topic/68892-advice-on-image-handeling/ Share on other sites More sharing options...
Barand Posted September 11, 2007 Share Posted September 11, 2007 There's a section in the manual showing how to deal with multipleimage uploads. When you upload them, store in a separate table containing the userID and imagepath in a separate row for each image uploaded. [pre] userID | path --------+------------ 1 | image a 1 | image b 2 | image c 2 | image d 2 | image e Link to comment https://forums.phpfreaks.com/topic/68892-advice-on-image-handeling/#findComment-346300 Share on other sites More sharing options...
Wuhtzu Posted September 11, 2007 Share Posted September 11, 2007 Could you please give a reference to that section Barand? Link to comment https://forums.phpfreaks.com/topic/68892-advice-on-image-handeling/#findComment-346304 Share on other sites More sharing options...
Barand Posted September 11, 2007 Share Posted September 11, 2007 http://www.php.net/manual/en/features.file-upload.php Example 38.3 on that page Link to comment https://forums.phpfreaks.com/topic/68892-advice-on-image-handeling/#findComment-346386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.