Gasolene wrote:I'm not sure what you'r asking.
Lets say there r two tables, users and topics.
User1 = 5 topics posted
user2 = 12
user3 = 1
user4 = 10
user5 = 34
user6 = 0
user7 = 33
All topics are inserted into topics table along with userid. Number of posts posted by users does not exist in users table. I need codes to select top 5 posters from users and their no. posts from tables and display that.
so in this case, it should display like this:
user5 = 34 topics
user7 = 33
user2 = 12
user4 = 10
User1 = 5
Any idea?