This is easy just track incomming ip adresses:
and referers:Code:$_SERVER['REMOTE_ADDR']
Update the database on unique hits and add a point to that vidCode:$_SERVER['HTTP_REFERER'];
Also to prevent cheating add a timestamp:
The rest is preferenceCode://** Make sure it's been 24 hours since they last visited**// $timestamp = //database row here; $current_timestamp = time(); if($timestamp and (($timestamp + 86400) < $current_timestamp)) { //query here } elseif(!$timestamp) { //query here }
Bookmarks