Hello guys, i want to made some “Ban restrictions” on my panel.
So i made this script to show an error that the user is banned on my panel:
[code]<?php
if($_SESSION[‘userid’]==$id)
{
$ban = mysql_query(‘select blevel from users’);
$bann(mysql_fetch_array($ban);
if($bann[‘blevel’]==“Banned”) {
?>
You're banned on this panel.
<?php
} }
?>
[/code]
But it seems that is not working… What i wrote wrong ?
I tried this with but still no effect, it shows me blank page.
[code]<?php
if($_SESSION[‘userid’]==$id)
{
$ban = mysql_query(‘select blevel from users’);
while($bann(mysql_fetch_array($ban))
{
if($bann[‘blevel’]==“Banned”) {
?>
You're banned on this panel.
<?php
} } }
?>
[/code]