Jump to content

Finding the rank of a recordset


burr

Recommended Posts

Yes, its basic and I've seen how before but hell, I'm new so..
I am trying to find the rank of a specific result in order by points.

$rank = 1;
mysql_query("SELECT * FROM `game_points` ORDER BY `points` DESC");
blah blah

I need to find specifically the rank where game_points.team_id = $team

Not sure what else you would need, aside from I am terrible with arrays.
Thanks for your help and patience!
Link to comment
https://forums.phpfreaks.com/topic/34490-finding-the-rank-of-a-recordset/
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.