Index du Forum » » Le coin des codeurs

Auteur

Problème de requete Mysql
Tribal-Dolphin
4374       
 

  Posté : 22-02-2005 07:47



$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

http://www.npds.org/viewtopic.php?topic=15610&forum=5