Jump to content

Tracking IP's is becoming a bit tedious and wishing not to work.


Zoofu

Recommended Posts

	$CIP = $_SERVER['REMOTE_ADDR'];

$selv300=mysql_query("SELECT * FROM `online` WHERE `ip`='$CIP'") OR die(mysql_error());
$rowv300=mysql_fetch_assoc($selv300);

if($rowv300){

}else{
            $sql400 = "INSERT INTO `online`
                    (`ip`)
                    VALUES ('".$CIP."')";
            $res400 = mysql_query($sql400) or die(mysql_error());
}

 

 

It only works when they're logged in. Otherwise it won't recognise them as an IP.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.