Problème d'affichage dans un boucle while
Je souhaite afficher la liste des employé d'un service dans un tableau
Voici le code :
Code:
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
|
<p><strong><i> Service : </strong></i><?php echo $service; ?></p>
<p><strong><i> Libelle : </strong></i><?php echo $libelle; ?> </strong></p>
<table>
<tr>
<td><strong> Identifiant | </strong></td>
<td><strong> Nom | </strong></td>
<td><strong> Prénom | </strong></td>
<td><strong> Emploi | </strong></td>
<td><strong> Type Contrat | </strong></td>
<td><strong> Section | </strong></td>
<td><strong> Salaire | </strong> </td>
</tr>
<?php while($data2 = mysql_fetch_array($query2))
{
?>
<tr>
<td><i><?php echo $data2['Id_Perso'];?></i></td>
<td><a href="MAJ_Perso.php"><?php echo $data2['Nom_Perso'];?></a></td>
<td><?php echo $data2['Prenom_Perso'];?></td>
<td><?php echo $data2['Emploi'];?></td>
<td><?php echo $data2['Type_contrat'];?></td>
<td><?php echo $data2['Id_Section'];?></td>
<td><?php echo $data2['Salaire_Perso'];?></td>
</tr>
<?php } //fin du while
?>
</table> |
Cependant il ne m'affiche pas tous les employés! Il en affiche quelque uns c'est tout! Un problème dans le while ? Ou autre chose? je sais pas du tout :bug:
EDIT: Apres ma requete il y a 5 employés mais il ne m'affiche jamais les 2 premiers :koi: