I was wondering how I go about numbering results... like for example...
I have a ranking system. I want the top10 $x(whatever) to be show, and their rank to be shown aswell...
like for example.
1 - Joe (500 points)
2 - Jay (499 points)
I just want the number they appear from my query which will be:
SELECT * from players order by points desc limit 2
In my code, how would I make it so that it auto numbers the players based on their points (highest = 1), without manually creating a field that sais "rank" and having to go through all my players manually ranking them.
Thx.