Jump to content

Trovare i topic più visti


najaru

Recommended Posts

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 interessato

SELECT 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 by Skillman_92
  • Like 1
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.