Discussion in 'PHP' started by Dehisce, Nov 23, 2008.
In my mysql I have a datetime. How do I run a query on that to select entries from last 3 minutes?
SQL: select * from table where datefield >= date_sub(NOW(),interval 3 minute) Code (markup):
select * from table where datefield >= date_sub(NOW(),interval 3 minute)
Separate names with a comma.