Bonjour, j'ai 1 soucis dans mes menus, je ne parlerai qu'un seul puisqu'il s'agit surement du meme probleme.
En faite mon menu est lié a ma bdd, et la 1ere rubrique qui devrait etre "AP" n'apparait pas. La ligne n'est pas génèré, pourtant pour la suite aucun soucis. Dans les differents menus toujours le 1er qui n'apparait pas.
Voici le code d'un menu ou l'erreur se produit.
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
17
18
19
20
21
22 <?php include ('mysqlconnect.php'); $sqlmenud1 = 'select * from module where nomProjet = "MIS" ORDER BY applicationMod'; $reqmenud1 = mysql_query($sqlmenud1); $datamenud1 = mysql_fetch_array($reqmenud1); echo'<tr>'; echo'<th height="19" colspan="2" align="left" valign="bottom" scope="row"><div align="left">*-MIS-*</div></th>'; echo'</tr>'; $i=0; while($datamenud1 = mysql_fetch_array($reqmenud1)) { echo '<tr>'; echo '<th scope="row"> </th>'; echo '<th width="201" align="left" valign="bottom" scope="row"> <br> <div align="left">';?> <input name="btr" type="radio" value="<?php echo $datamenud1['applicationMod']?>"<?php if($i==0){echo'checked="checked"';}?>/> <?php echo $datamenud1['applicationMod'].'</div></th>'; echo'</tr>'; $i++; }
Partager