PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
#Get hits today
$qry = mysql_query("SELECT * FROM `hits` WHERE `aff_id` = 'Admin' and `hit_date` >= '".time()."'", $conn) or die ("DID NOT hits " .mysql_error());
$num_hits_today = mysql_num_rows($qry);
date converts your unix timestamp into readable dates, while your stored date in mysql is still a unix timestamp.