I have date database entries like the format 2011/01/08 06:10:11, but I need to SELECT dates with the following select:
$q = mysql_query("SELECT id FROM events WHERE start = '".date("Y-m-d")."'");
So PHP doesn’t select anything!
When I set the time in the data base to the format 2011/01/08 00:00:00, the PHP selects this day
Please help me selecting the date whatever the time was.
THX
dont forget to replace ‘2005-01-07’ with the date you want. Same question has been discussed here