website logo
Auteur
avatar
colonelwog

Forum » » Le coin des codeurs » » besoin de récupérer les variables


Posté : 17 nov. 2011 à 15:04 icone du post

j'ai ce code :


$query = "SELECT  `annu_champ11` , COUNT( `annu_champ11` )
FROM ".$NPDS_Prefix."$ModPath 
GROUP BY `annu_champ11`
ORDER BY 'COUNT(`annu_champ11`)' ASC LIMIT 10 ";
   $result = mysql_query($query);
   $num_results = mysql_num_rows($result);
   for ($i=0; $i <10; $i++)
   {
      $row = mysql_fetch_array($result);
echo"<tr><td>"; echo $row['COUNT( `annu_champ11` )'];echo"</td><td>";echo $row['annu_champ11'];echo"</td></tr>";
   }


je récupère donc une liste de chiffre mais j'en ai besoin pour remplir une variable dans un autre fichier sous forme de liste avec virgule .
du style :


 $DataSet->AddPoint($array['COUNT( `annu_champ11` )'],"Serie1");



biensur "$array['COUNT( `annu_champ11` )']" correspond à ma liste de chiffre
comment faire ?

merci...

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=25260&forum=5