Salut,
dans ton count : planete.players dans ton list() players_planete
Dans ce genre de requête j'aliasse la colonne count
SELECT players.id, players.pseudo, players.team, players.xp_spatiale, players.xp_terre, COUNT(planetes.players) as nb_planetes_players FROM players INNER JOIN planetes ON players.id = planetes.players WHERE active !=0 GROUP BY players.id, players.pseudo, players.team, players.xp_spatiale, players.xp_terre ORDER BY `COUNT( planetes . players )` DESC
76. while(list($players_id, $players_pseudo, $players_team, $players_xp_spatiale, $players_xp_terre, $nb_planetes_players) = mysql_fetch_row($req))
Partager