does this look ok?
I want it to see if teh user account is disabled where the field = Yes
I want it to see if teh user account is disabled where the field = Yes
PHP Code:
}
$sql_disabled = ("SELECT * FROM $users_profiles WHERE
username='$PHP_AUTH_USER' && account_disabled
='$account_rows'");
// execute the sql query and get result
$sql_disabled_query = mysql_query($sql_disabled)
or die("Could not match!");
$account_rows = mysql_num_rows ($sql_disabled_query);
if ($account_rows == 'Yes')
{
echo "Your account is disabled";
exit;
} else {
}
Comment