Yep there are many similar questions, but I really couldn’t solve my problem. Unfortunately I don’t have enough knowladge to understand that similar question’s answers to solve mine ^^.
I have id, name, score , ip variables. I don’t care about id or ip variables..
My query like this;
$query = "SELECT * FROM highscores ORDER BY score + 0 DESC LIMIT 10";
$result = mysql_query($query);
This gives higscore table but, there are same user’s different scores. I want to show highest score per user.
I don’t even know why there is + 0 on my code. And why if I delete it table doesn’t show as desc.
The following query will give you the name of each player and his best score :