Yes, and the code I posted should do that. What you can't do is what you specified in your original post, which is "within a specific number of days". The hit data is not timestamped, so there is no way of selecting a date range.
BTW, the code I posted could be modified to do all forums in one query. For live views:
SELECT SUM(views) AS totviews, forumid FROM vb2_thread GROUP BY forumid
... should work. I don't have the other option enabled anywhere, or I'd test it and give you that one.
-- hugh
|