Bonjour à tous,
J'ai une liste deroulante sur des formations, en fonction du choix de la formation, un tableau apparaît avec x personnes inscritent à cette formation.
J'aimerais avoir un compteur qui me donne le nombre de personne, si quelqu'un pouvait m'aider, merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 <?php $reqliste = mysql_query("SELECT * FROM membre,form where form.id_form=membre.num_form and form.id_form ='$num_form' order by nom" ); //je stocke cette requête dans un tableau ?> <?php for ($i = 1 ; $i <=50 ; $i++){ $donnees = mysql_fetch_assoc($reqliste); ?> <table width="100%" align="center"> <tr> <td style="width:270px;"><font color="black" size="2"><strong><?php echo $donnees['intit']; ?></strong></font></td> <td style="width:200px;"><font color="black" size="2"><strong><?php echo $donnees['nom']; ?></strong></font></td> <td style="width:150px;"><font color="black" size="2"><strong><?php echo $donnees['prenom']; ?></strong></font></td> <td style="width:85px;"><font color="black" size="2"><strong><?php echo $donnees['date_']; ?></strong></font></td> </tr> </table>







Répondre avec citation
Partager