Hi all,
I have a table with 3 fields: Name, score value1 and score value2 and it is ORDER BY Name.
I want php to rank the name base on the score value1 like:
Name Score Value1 Score Value2 Rank
Jane 8.2 3.2 2
Kent 9.2 3.2 1
Mary 5.4 9.3 3
How can I create the ranking like above?
If exist 2 same score value1, I would like it to look into score value2 to determine the ranking.
How can I do that?
Thanks.