Is a bit simpler.PHP Code:$query = mysql_query("SELECT mabanned FROM `users` WHERE username='$username'");
$row = mysql_fetch_array($query);
if($row['mabanned'] != 0) {
die('You have been banned from logging in.');
}
In double quotes ( " ) you can reference variables directly. If you're not referencing variables use single quotes ( ' ) as they're more efficient in those circumstances.






Reply With Quote