Jump to content

[SOLVED] Got myself in a tizz trying to work out the most popular!


alfieshooter1

Recommended Posts

I reckon this should be so easy, but I'm going round in circles fast.

 

I have a table called fans:

 

id, username, fanof, dateadded

 

I want to return the most popular for a particular date, so I need to somehow select the 'fanof's added on that date and then sort them in order of how many 'fanof's there are.

 

I.e

 

1, Bob, Sally, today

2, Bob, Jim, today

3, Bob, Bill, today

4, Bob, Sally, today

5, Bob, Bill, today

6, Bob, Bill, today

 

Would return:

 

Bill (most popular)

Sally

Jim

 

Does that make ANY sense?

 

Please help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.