Index du Forum » » Le coin des codeurs

Auteur

besoin de récupérer les variables
colonelwog
1949       
 

  Posté : 17-11-2011 15:04

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($resul t);
echo"<tr><td>"; echo $row['COUNT( `annu_champ11`&n bsp;)'];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` )'],"Seri e1");



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

merci...



Cet article provient de NPDS

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