PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
foreach($_POST["userID"] as $userID => $check) {
mysql_query("UPDATE users SET corporate='$username' WHERE id='$userID'");
}
Right now that code only will se corporate='$whatever' when boxes are selected. I also want it to set corporate='' if a box is unselected and then submitted.