PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a ranking system based on correct answers however, when the values of correct answers are equal for more than one user, I want them to be the same rank. For example:
Rank. Username - Correct
1. Test - 5
1. Test1 - 5
1. Test2 - 5
4. Test3 - 2
5. Test4 - 1
The code below just does +1 rank with every username. Does anyone know what needs to be added to the code below or at least point me in the right direction in order to get results like above?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.