Hi,
Ive got a website which you can add friends to your buddies list. The problem is I wanna rank the top 5 users with the most friends.
The database setup is:-
Friend | WhosFriend | Friend_Since
So in the table list for example it would look like this...
Harry | Bob | November 2004
Bob | Harry | November 2004
Harry | Trevor | November 2004
Harry | Stephen | October 2004
How would I get it to display that harry has 3 friends and bob has 1 to display in a table?
Most Friends
Harry - 3 Friends
Bob - 1 Friend
Stephen - 0 Friends
Im not sure if it is possible but any help would be grately appreciated