I have made a flash game that has a ranking system which allows the players to know the top 10 users ranked by score. That works fine but I'm trying to figure out a query that allows the player to know his own ranking if he's not listed in the top 10 players. The query I use for ranking the top 10 is: mysql_query ( "SELECT * FROM 'myscore' ORDER BY score DESC") Code (markup): Any ideas ?!
First the Ranking Top 10 query can be changed to mysql_query ( "SELECT * FROM 'myscore' ORDER BY score DESC LIMIT 10") This should use the bandwidth between SQL Server and App Server more efficient. For the other part it is handy to know the table structures you are using.