Hello,
I'm using this code to store this info in that dbase before my <html> tag of index.php page but it won't store anything.
$vis_browser = $HTTP_USER_AGENT;
$vis_ip = $REMOTE_ADDR;
$db = mysql_connect("host" , "user" , "password");
mysql_select_db("dbase" , $db);
$insert_sql = "INSERT INTO stats(ip, browser, received) VALUES('$vis_ip', 'vis_browser', NOW())";
$results = mysql_query($insert_sql);
Where should I put this code if is correct to record this info with out a form. I know there is a bunch of free site stats but I just trying learn. 😉
Thanks