Bonjour,
Je fais afficher les réponses d'un sondage une en dessous de l'autre mais j'aimerais afficher de cette façon:
Réponses des sondages
Question 1 2 3 4
1-Ponctualité
2-Langage
3-Horaire
4-Tenue
5-Ecoute
etc.
Il y a plusieurs questions et le nombre de sondage peut varier.
Actuellement, j'Affiche ainsi:
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
17
18
19
20
21 while ($donnees = mysql_fetch_array($reponse) ) { echo "<p align='center'><h2><strong>Sondage no : </strong>".$nb_sond."</h2></p>"; ?> <table align="center" width="90%" cellpadding="3" border="1"> <tr align="center"> <td width="60%" align="center"><strong>Question</strong></td> <td width="5%" align="center"><strong>Rép.</strong></td> <td width="35%" align="center"><strong>Commentaire</strong></td> </tr> <tr> <td><strong>Ponctualité</strong></td> <td align="center"><?php echo $donnees['e_ponctualite']; ?></td> <td><?php echo $donnees['pon_note']; ?></td> </tr> <tr> <td><strong>Dynamiste</strong></td> <td align="center"><?php echo $donnees['e_dynamiste']; ?></td> <td><?php echo $donnees['dyn_note']; ?></td> </tr> <tr>
Partager