PDA

View Full Version : Tracking Script any suggestion or tips?



nexika
May 15th, 2006, 11:33 PM
<?php
include("cn2.php");
$affiliate = $_GET['hop'];
$ip = getenv('REMOTE_ADDR');
$date = date("F j, Y, g:i a");
//set up the query
$result = mysql_query("Insert into visitors(ip,date,affiliate,name,email) values('$ip','$date','$affiliate','$name','$email' )");
?>



Is there any value that i can add so i know from what page (or URL) the visitors is??

Maybe browser... url... anyone can help?

Tks!!

aznbbj
May 16th, 2006, 03:32 AM
Referring page:
HTTP_REFERER

Browser:
HTTP_USER_AGENT

More server variables can be found here:
http://us3.php.net/reserved.variables

Hope that helps!

nexika
May 16th, 2006, 04:27 AM
Thanks!

Working ;)