query mysql table and fetch rows posted in 3 days

Posted by Mac Taylor on Stack Overflow See other posts from Stack Overflow or by Mac Taylor
Published on 2010-05-06T04:32:48Z Indexed on 2010/05/06 4:38 UTC
Read the original article Hit count: 156

Filed under:
|

Hey guys

how can i query my mysql database and fetch rows which are posted in earlier 3 days

i know how to fetch todays's rows but not 3 days ago

time will save 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 posts in 3days

and im looking for a simple and straight solution ,because i know how to do so in long php codes

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql