RE: [PHP] Possible bug with PHP v4.1.1 and bits?

From: Date: Fri, 03 Jan 2003 17:23:37 +0000
Subject: RE: [PHP] Possible bug with PHP v4.1.1 and bits?
Groups: php.general 
Request: Send a blank email to php-general+get-130128@lists.php.net to get a copy of this message
-----Original Message----- From: Daevid Vincent To: php-general@lists.php.net 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

« previous php.general (#130128) next »