Hello,
I've been bugging various people on here for the last couple of weeks with problems with the football prediction website I have been developing, so I wont go into great deal explaining the situation again.
Basically I have a set of users in a database table.
Each user has a set of points.
I can retrieve these results then rank them in a table using the ORDER BY sql clause, but what I would like is some way of recognising what rank each user is based on their results, and have that stored in the database table along with the user's points.
For example:
id--name--points--rank
1--person1--204----4
2--person2--380----1
3--person3--200----3
4--person4--340----2
This way I could ORDER BY the ranked number when I retrieve the data, plus I would be able to state exactly which rank they are in the table when displaying the data.
Does anybody know of a way of doing this please?
Thanks very much.