I am trying to make ip tracking system for my web and then inserting it into the sql.
But my problem is that on a single click i am getting 2-4ip in my sql.
Coding am using this currently.
<?php
include 'config.php';
$ip=$_SERVER['REMOTE_ADDR'];
$referer=$_SERVER['HTTP_REFERER'];
mysql_query("INSERT INTO `track`(`date`, `time`, `ip`, `referer`)
VALUES ( CURDATE(), NOW(),'".$ip."', '".$referer."')");
echo"<script type='text/javascript'>
window.'http://example.com';
</script>";
?>
When anyone click on this it is saving around 4ips that too different and even sometimes of different countries.
Why this problem is arising in my tracking system.
