Hello all
$referer = "$HTTP_REFERER";
if ($referer != "http://www.something.com/7485/dream/")
{
$counter = "INSERT INTO counter (ID, browser, IP, referer, time) VALUES ('$id','$browser','$ip','$referer','$time')";
$result = mysql_query($counter)
}
I keep getting a parse error for the above code on line 33, the offending line 33 is the closing brace }.
All people who visit my page, a counter gets counted, but I don't want the same IP address keep causing the counter to increment because they clicked on submit and a field not entered, so they stay at the same page with an error message like "please fill in your first name", but causing the counter to increment.
I know most people have DHCP, but I have no other way to do this, anyhow, does anyone know why the above script is causing a parse error?
Thx
MK
Sorry i'm posting a new thread, the old one, when I tried to reply another thread I kept getting an error.