Jump to content

Archived

This topic is now archived and is closed to further replies.

khan kaka

displaying records older then 20 days

Recommended Posts

i am using dreamweaver 8 and php.

 

i want to make a recordset that displays records older then 20 days.

 

i cant work out how to filter the date field.

 

 

thanks in advance

Share this post


Link to post
Share on other sites
SELECT * FROM `mytable` WHERE `mydatefield` > (NOW() - INTERVAL 20 DAY)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.