Auto Checking a Check box from a Database selection
Posted: Wed Nov 26, 2003 10:08 pm
I have a dynamic check box element in my page that is generated from items in a mysql database table. I wish it to compair this list to a secondary table, which contains a list of items that have been selected in a previous session, and check mark those items. This way the user can see what settings she had previously and modify them to her needs.
I'm not sure how I can set this up, but I do know there will be an if then statment to compair the first table to the second to determin if there is a match. However since the list is generated dynamically, I'm not sure what I need to know to loop both lists at the same time.
Any ideas?
Thanks
I'm not sure how I can set this up, but I do know there will be an if then statment to compair the first table to the second to determin if there is a match. However since the list is generated dynamically, I'm not sure what I need to know to loop both lists at the same time.
Any ideas?
Thanks