I've got a table of user's times on a game. I have the following query to get the top 10 quickest times by users:
SELECT uid , MIN(time) as mintime FROM scores WHERE score = 100 AND tid = $tid GROUP BY uid ORDER BY mintime ASC LIMIT 10
This works fine, but what I also want to do is display the logged in user's rank or position within this table even if they aren't in the top 10, and I can't think of any efficient way to do this without looping through the entire table with PHP (which is a lot more than 10!). Any ideas?
Help


















