Skip to content
Advertisement

Tag: ranking

Sort MySQL query in PHP

I’m trying to sort different users ‘points’ by descending order (highest first). But at the moment the query is being returned in order of the user’s ID (order they appear in the database). I’m not sure what is wrong with my code? The user can be in multiple leagues, so it first queries to see what leagues that the particular

Advertisement