PDA

View Full Version : adding places depending on the rating score


imatus
08-24-2005, 04:45 PM
Hello again everybody :)

I have:

Player | Rating
----------------
player1 1060
player2 1020
player3 980
...
playerN 640

The data is being sorted by rating DESC.
Now I'd like to add 'Place': 1st for the highest rating etc, like:

# | Player | Rating
-------------------
1 player1 1060
2 player2 1020
3 player3 980
...
n playerN 640

but I cannot figure out how to do so :confused:

Please, drop me a hint!

Thank you in advance,
Have a wonderful day :)

Magic_Clock
08-24-2005, 05:11 PM
Yes, yes thats nice.

Kid Charming
08-24-2005, 07:11 PM
There isn't really a good way to do this in your query; you need to set that up in your display script.