-----Original Message----- From: Daevid Vincent To: [EMAIL PROTECTED] echo "action = ".$_POST[action]."<BR>"; if ($_POST[action] == "1" || $_POST[action] == "0") echo = "UPDATE Company SET Enabled = ".!(intval($_POST[action]))." WHERE CompanyID = $id";
I cannot figure out how to simply make the 0 and 1 invert or negate or toggle as it were. -------------------------- echo = "UPDATE Company SET Enabled = ".(1-$_POST[action]) ... Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php