Here is the code for gettin ip nd browser used in chat script m using :-
This shows ip nd browser of login registration time tht is stored in database i want to see current ip of users i tryed many things nothing works pls help thnx .
Code:
case 'agent'; if($login['moder']>=3) { $q = @mysql_query("select * from `".$px.$utable."` where id='$whoid';"); $dbuser = @mysql_fetch_array($q); $q = @mysql_query("select * from `".$px.$utable."` where id='$whoid';"); $dbuser = @mysql_fetch_array($q); print "[b]Ip:[/b] ".$dbuser['ip']." "; print "[b]Remote Ip:[/b] ".$dbuser['rip']." "; print "[b]Headers:[/b] ".$dbuser['url']." "; print "[b]Browser:[/b] ".$dbuser['soft']." "; } else print $lang['access_denied']; break;
Comment