curb
03-14-2007, 10:45 PM
I can't seem to to make the query call out last months highest clicks. I read the INTERVAL and subdate but don't know how to apply it.
I'm trying to get the last month and not 30 days. Any help would be appreciated.
SETTING====
Fieldname: time
Type: int
UNIXTIME
Here's what I have for the query:
SELECT id, title, url, imgname, clicks
FROM students
WHERE approved = 'yes'
ORDER BY clicks DESC
LIMIT 8
I'm trying to get the last month and not 30 days. Any help would be appreciated.
SETTING====
Fieldname: time
Type: int
UNIXTIME
Here's what I have for the query:
SELECT id, title, url, imgname, clicks
FROM students
WHERE approved = 'yes'
ORDER BY clicks DESC
LIMIT 8