Well, the main problem is I'm retarded and can't figure this out. Its probably the most easiest thing also. I've look through the documentation and a few website, I just can't find anything to help with this dump query for MySQL using PHP.
What I'm trying to do is basically read a log (which is stored in a mysql db). I want to display all entries for todays date. The dates in the table are stored in a UNIX TIMESTAMP, the feild is an INT(10).
Here is what I have for my query
$date = time();
$check_log = "SELECT * FROM log WHERE date = ".$date." AND page = '".$page."'";
Now, looks right ... but its not returning any records. I know there is records within the log table for today, just returns none. I have a feeling that it has to do with the TIME part. How can I have PHP/MYSQL just use the date and not the time.
Any help would be appriciated .. I'm just about to go bald over this simple thing ... just can't figure it out.
Thanks in advance!!