hi guys
I am back with a new interesting question
I have a colomb which stores the users IP
I use this code to insert data
<?php
mysql_select_db("databse", $con);
$IP=GetHostByName($REMOTE_ADDR);
$Date = date("Y/m/d");
$tim = localtime(time(),true);
$Time=($tim['tm_hour'].":".$tim['tm_min'].":".$tim['tm_sec']);
$query="INSERT INTO ads (Email, Title, Date, Time, IP) VALUES ('$Email', '$Title', '$Date', '$Time', '$IP')";
print "Data was inserted successfully";
?>
How can I stop the same IP adding to databse unless minium 6 hours pass by
what should i add