HELP!!! I need to find the timestamp ranges for the last 7 days..
Hi.
I'm trying to write a script that blocks news into daily digests. Since vbulletin uses a timestamp instead of a date field I need to find a way to query for the last seven days, one at a time (since doing them together confuses the sorting no matter how I try). I've been searching through the code to try to find such a function, no luck. I'm getting angry because I wouldn't have to do all this work if vbulletin would either use a proper date field MySQL can manipulate or at least include on in addition to the timestamp...
Rephrase -- I need to find out the time range for today, then yesterday, then the day before yesterday and so on back 7 days. Each time will be a query.
|