Bonjour a tous !

Dans le code suivant il me manque toujours un enregistrement. Quelqu'un pourrait-il me dire ou se trouve l'erreur ?

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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
echo '<table border="1"><tr>';
echo "<th>Référence Stagiaire</th>";
echo "<th>Genre</th>";
echo "<th>Nom</th>";
echo "<th>Prenom</th>";
echo "<th>Téléphone</th>";
echo "<th>Adresse</th>";
echo "<th>Code Postal</th>";
echo "<th>Ville</th>";
echo "<th>Modifier</th></tr>";
while (odbc_fetch_row($rs)) {
  $ref=odbc_result($rs,"Ref_stagiaires");
  $genre=odbc_result($rs,"Genre_stagiaire");
  $nom=odbc_result($rs,"Nom_stagiaire");
  $prenom=odbc_result($rs,"Prenom_stagiaire");
  $tel=odbc_result($rs,"Telephone_portable");
  $adresse=odbc_result($rs,"Adresse");
  $CP=odbc_result($rs,"CP");
  $ville=odbc_result($rs,"Ville");
  ?>
 
</p>
<tr><td><a href="modif_stagiaire.php?Ref=<?php echo $ref;?>"><?php echo $ref;?></td>
  <td><?php echo $genre?></td>
  <td><?php echo $nom?></td>
  <td><?php echo $prenom?></td>
  <td><?php echo $tel?></td>
  <td><?php echo $adresse?></td>
  <td><?php echo $CP?></td>
  <td><?php echo $ville?></td>
</tr>
<p>
  <?php }?>
  </table>
Merci