1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <? include"conne_base.php" ?>
<?
$du=$_POST['nbre1'];
$au=$_POST['nbre2'];
$requete1="select nom_prof,client,sum(duree) from coupon,prof
where code_prof=cod_prof and date_paiement>=$du and date_paiement<=$au
group by nom_prof
order by client";
$requete2=mysql_db_query("karim",$requete1);
while($row=mysql_fetch_array($requete2))
{
$table1[][]=$row['nom_prof']['client']['sum(duree)'];
}
for($i=0;$i<count($tabe1);$i++)
{
for($j=0;$j<3;$j++)
{
echo $table1[$i][$j];
}
}
?> |
Partager