Hi,
I was wondering how I would change an ENUM value from the default 0, to the other value of 1. I wanted it so once the email is verified the account is activated my changing the value “ver” from 0 to 1. This is what I have to far, what am I doing wrong.
[php]$update = mysql_query(“UPDATE accounts SET ver=1 WHERE usr=’$usr’ AND ema=’$ema’”);
if ($update)
{
echo "$usr
";
echo "$ema
";
echo “Verified!”;
}[/php]
At the moment it displays the username, email and “Verified!”, but when I go and check the database the value is still at 0. Is it something to do with it being an ENUM?
Thanks!