Using PHP and MySQL, I want to query the table of messages that my users made to find the person who posted the most posts.
What will be the correct request for this?
Example table structure:
[id] [UserID]
1 johnnietheblack
2 johnnietheblack
3 dannyrottenegg
4 marywhite
5 marywhite
6 johnnietheblack
I would like to see "johnnietheblack" is the main poster, "marywhite" is in second place, and "dannyrottenegg" has the smallest
source
share