I have:
} elseif($arcade!="ON") {
$location = substr($colum[user_shortcut],2,32);
$zero = "00";
$add = $zero . "" . $location;
echo"$add";
$query = "UPDATE $TableName SET user_shortcut='$add' WHERE user_session='$user_islogged' LIMIT 1";
mysql_query($query) or die(mysql_error());
require("user_connect.php");
echo"$col[user_shortcut]";
I echo $add and it displays the right information of 0000000000000000000000000000000000
, but, that does not update into the table, the old value is still in their.
$col[user_shortcut] equals 0100000000000000000000000000000000 , which is what is updated when the checkbox is clicked to ON. But when they click it off, it doesn;t update the ALL 0's. Yet, I echo what its suppsoed to update and it says all 0's. Anyone have an idea why?
Thanks for the help in advance.
Danny