najaru 971 Posted January 1, 2011 Share Posted January 1, 2011 (edited) Per poter avere una statistica dei topic più visti in un determinato periodo è necessario lanciare una query nel mysql, tipo quella seguente. Ovviamente è necessario cambiare le date a seconda del periodo interessatoSELECT t.tid, t.title, COUNT(*) AS topic_postsFROM ibf_posts pLEFT JOIN ibf_topics t ON (t.tid=p.topic_id)WHERE FROM_UNIXTIME(p.post_date) BETWEEN '2010-01-01' AND '2010-01-31'GROUP BY t.tidORDER BY topic_posts DESC Edited December 23, 2012 by Skillman_92 1 Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now