bryanturnpost Posted March 9, 2009 Share Posted March 9, 2009 I'm trying to upload Multiple Images to my database and Every time I go to change/edit one of the images all of the images changes to the one I edited it to? The only want I can get different images in a entry is when I change them in the database.. any Ideas on how i can fix this for my client? Link to comment https://forums.phpfreaks.com/topic/148659-multiple-images/ Share on other sites More sharing options...
wildteen88 Posted March 9, 2009 Share Posted March 9, 2009 Post the code you're using. When updating the image you just edited make sure you query looks something like UPDATE images SET image_name = 'new name', image_path = 'path/to/img' WHERE image_id = 123 The WHERE clause is very important in an UPDATE query. Without it MySQL will set all records within the table to the values you using in your query. The WHERE clause will only affect the record that matches the condition. Link to comment https://forums.phpfreaks.com/topic/148659-multiple-images/#findComment-780701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.