i'm not pro in php. i have a simple table like this:
game_id name score
and i used this query to get the rank of a player in mysql:
SELECT FIND_IN_SET( score, ( SELECT GROUP_CONCAT( score ORDER BY score ASC ) FROM highscores ) ) AS 'rank' FROM highscores where game_id = $game_id
it works and shows the rank in mysql but i cant get the rank number as a parameter in my php code.
I have tried with the following methods:
mysql_fetch_assoc();
mysql_free_result();
mysql_fetch_row();
But I didn't succeed to display (get) the actual value.