Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
This should do:
Code:
select *
from task_table
where date(task_date)=date('$date')
the "date(task_date)" should not be necessary, but in case you have hour/minutes/seconds info, they will be stripped out, making your query match the whole day, and not just 1 millisecond in it.
http://dev.mysql.com/doc/refman/5.1/...functions.html
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 08-27-2008 at 03:33 AM..
|