nvee Posted November 3, 2009 Share Posted November 3, 2009 Hey Guys This is not as much "help me with my code" but rather "help me wrap my head around this" ... I am faced with a project where the user can add as many photos as he wishes to a profile (almost like a gallery) and I find it difficult to understand the database implications for this. I understand that there will be a table in the database with the images (or image id's) and then the user account will have a field called "image_ids" or something in that line, but how do I add multiple id's to it? I mean, I was under the impression that I can only add 1 content chunk to a field? I know the alternative is to have e.g. 5 image fields, but in this case the clients can have as many as they want. Probably not that much a challenge as my being just to dumb to figure it out Link to comment https://forums.phpfreaks.com/topic/180113-multiple-images/ Share on other sites More sharing options...
dubc07 Posted November 3, 2009 Share Posted November 3, 2009 In the database set your type id fields to "INT" "auto increment" This will help individualize your images in the database and allow multiple uploads for images with same name. If you are wanting to set the images to an id use the copy rename function on upload. Link to comment https://forums.phpfreaks.com/topic/180113-multiple-images/#findComment-950195 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.