Jump to content

ORDER data by total number of rows?


EchoFool

Recommended Posts

Hey,

 

 

I have a query which loads events and i want to order them by total number of fans of that event.

 

 

The number of fans is based on how many people are a fan of the event which is stored in a secondary table for example:

 

Event Table

Event ID | Event Name

 

 

Event Fans

UserID | Event ID

How do i do it ?

Link to comment
https://forums.phpfreaks.com/topic/247736-order-data-by-total-number-of-rows/
Share on other sites

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.