astralaaron Posted August 26, 2008 Share Posted August 26, 2008 I get confused by them still..just wondering if someone will post up a simple foreach checkbox checked do soemthing (mysql query)thanks Link to comment Share on other sites More sharing options...
Synook Posted August 26, 2008 Share Posted August 26, 2008 Say your checkboxes were named checkbox[] foreach($_POST['checkbox'] as $checkbox) { //Update the db table's column to read "1" mysql_query("UPDATE table SET $checkbox = 1");} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.