Updating many records PHP script
So I use a while loop to show all the photos (using their URL links in the database) as well as 2 inputs: 1) Checkbox and 2) Textbox. The form names I give for each images checkbox and textbox are A$PhotoID and B$PhotoDescription respectively (so all the checkboxes can be accessed through A$PhotoID and B$PhotoDescription - via the post).
However, I'm really confused with the PHP update script.
I want my PHP script to do the following:
-For each of the checkbox values (A) I need to update that field in the DB for each of the Photos (A$PhotoID)
-For each of the textbox values (B) I need to update that field in the DB for each of the photos (B$PhotoID)
Not sure if this is the right way (at all!) to achieve this. I'm going for the old-school Facebook-esk Edit Photos page - where you can change the descriptions and check the box for the Main photo (although my box-checking is a Boolean value which means 'whether to display in the websites gallery or not').
Please can someone enlighten me? Thanks a lot,
Chris
