I have a php/mysql hit counter script wich works ok. Below is the part where i exclude my own ip adress. I dont have sstatic ip, so I have to change this from time to time.
How do I exclude a range of ip adresses like for example all between
84.202.66.0 and 84.202.66.255 ?
Iv tried many different things but cant get it to work
# Exclude my own ip
if($ip != '84.202.66.8') {
$sql_insert = "INSERT INTO $table (browser,ip,date_now,date_first)
VALUES ('$browser','$ip','$date_now','$date_first')";
$do_insert = mysql_query($sql_insert);
}