Forum » » Le coin des codeurs » » besoin de récupérer les variables
Posté : 17 nov. 2011 à 15:04
$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>";
}
$DataSet->AddPoint($array['COUNT( `annu_champ11` )'],"Serie1");
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=25260&forum=5