riverplate.com
06-10-2008, 11:10 AM
Hi!
i'm coding a cron that every hour gets the last 5 topics of the forum.
this it's the part where i've get the data
$threadlist = $vbulletin->db->query_read("SELECT thread.threadid AS threadid, thread.title AS title
FROM " . TABLE_PREFIX . "thread AS thread
WHERE thread.forumid = 9
AND thread.open != 10
AND thread.visible = 1
ORDER BY thread.dateline DESC
LIMIT 5");
but i'd like to show the most active (where users posted) topics within 24 hours.
is it possible? any ideas
thanks in advance
i'm coding a cron that every hour gets the last 5 topics of the forum.
this it's the part where i've get the data
$threadlist = $vbulletin->db->query_read("SELECT thread.threadid AS threadid, thread.title AS title
FROM " . TABLE_PREFIX . "thread AS thread
WHERE thread.forumid = 9
AND thread.open != 10
AND thread.visible = 1
ORDER BY thread.dateline DESC
LIMIT 5");
but i'd like to show the most active (where users posted) topics within 24 hours.
is it possible? any ideas
thanks in advance