To select stuff more than 3 days old use curdate() to return the current date then use the Interval function for your offset :
Code:
SELECT *
FROM mytable
WHERE mydatefield > ( curdate( ) - INTERVAL 3 DAY )
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Drive a Steam Roller Steam Engine Prints
Thanks guelphdad - excuse my thick finger syndrome!
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Drive a Steam Roller Steam Engine Prints
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.