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. Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.