I'm less experienced please be gentle :)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can anyone tell me whats wrong with the below code? it doesnt execute.

$ip=$_SERVER["REMOTE_ADDR"]; 

$banned="SELECT * FROM banned WHERE ip='$ip'"; 

if(@mysql_num_rows(mysql_query($banned)) > 0) { 

echo "You have been Banned."; 

}else{ 
echo "$ip"; 
} 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux