The ip code is:
Code: Select all
if (getenv('HTTP_X_FORWARDED_FOR')){$onlyip=getenv('HTTP_X_FORWARDED_FOR');} else {$onlyip=getenv('REMOTE_ADDR');}Code: Select all
$ip = mysql_query("SELECT ip FROM `Table` WHERE ip LIKE '$onlyip' ");
ECHO $ip;Resource id #3
however if i enter an ip manualy as a string in place of $onlyip it will search the table for the coresponding ip as desired.
I would apreciate any help with this problem
Thanks for any help
Dav