I have a BOOLEAN in my table, set to 0 or 1.
$test = mysql_query("SELECT status FROM mydb WHERE email = 'admin@mail.com'") or die(mysql_error());
if ($test == 0) {
echo "FF";
} elseif ($test == 1) {
echo "ON";
}
But this doesn’t work, why? I tried true and false, that doesn´t work either.
You are not actually fetching the result.