Query mysql table and get rows published in 3 days
how can i query my mysql database and get rows that are sent in earlier 3 days
I know how to fetch the current lines, but not 3 days ago
the time will be stored in my table like this:
2010-01-20 19:17:49
and this is what I know:
SELECT id FROM pages WHERE date=now()
but i need to show messages in 3 days
and im looking for a simple and straight forward solution because i know how to do it in long php codes
+2
a source to share
3 answers