sending ip & refer details to mysql?
Posted 30 September 2006 - 09:55 PM
Does any body no how to send logged user details to a mysql table?
edited by CV to remove an ad link.
Posted 30 September 2006 - 10:30 PM
mysql_query("INSERT INTO thetable (thecolumn) values ($_POST['foo'])");
Of course, this assumes you are getting the login data via $_POST.
Posted 01 October 2006 - 09:34 AM
$ip = $_SERVER['REMOTE_ADDR'];i think thats there IP.
if u want were they were refered from:
$refer = $_SERVER['HTTP_REFERER'];
Jason / ProjectFear / Jaysonic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users