View Single Post
Old 02-08-2008, 04:35 PM   #6 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

You could also play around with DATE_ADD/SUB, for example:
SELECT DATE_SUB(NOW(), INTERVAL 24 HOUR) AS 24_hours_ago;
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
WinSrev (02-08-2008)