Hello,I need help in updating user image in form.
I have form of around 10 fields in there is options for updating images(images which have been uploaded at time of reg)** Max 5 images is allowed **now i am successful in saving data to database and at time of updating i can show information from database also.but in image update field there are 5 images and i have crrosponding columns in table_users for these 5 images,now at time of update how would i know which column image is updated and which is not?? actually i can't able to understand logic for this,only needed guidance for how do it.code as examples are welcome. plx help

Member Avatar for diafol

THis is the wrong schema IMO. A few ways you could do this. Here one where you could have a images table and a "link" table:

images
image_id (PK)
(other data)

userimages
image_id (PK)
user_id (PK)
active (0,1)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.