website logo
Auteur
avatar
Tribal-Dolphin

Forum » » Le coin des codeurs » » Problème de requete Mysql


Posté : 22-02-2005 07:47 icone du post



$sql2 = "SELECT SUM(id) AS nb, station FROM stations ORDER BY station ASC";
while ($row = mysql_fetch_row(mysql_query($sql2))) {
   echo "La station ".$row[1]." à reçu ".$row[0]." votes<br>\n";
}



Avec ça, ça marcheras.

Message édité par : Tribal-Dolphin


Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=15610&forum=5