Bonsoir
j'avance à pas lent et chaque fois je butte cette fois ci je ne sais pas ou placer ma boucle while pour afficher les lignes de ma table correspondante à la sélection de la semaine (il y plusieurs ligne ayant la meme valeur de semaine)

voic mon code ou est l'erreur svp
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include("../default/inc/header.php");
 
?>
<table border="0" class="table">
   <tr>
      <td class="titre" width="20%" align="left">site </td>
      <td class="titre" width="20%" align="center">Soldee</td>
      <td class="titre" width="20%" align="center">Commutée</td>
      <td class="titre" width="20%" align="center">I de Realiser</td>
      <td class="titre" width="10%" align="center">Annulé</td>
      <td class="titre" width="10%" align="center">Rendu</td>
   </tr>
<?php
$sql = 'select * from statpictrel where semaine="' . mysql_real_escape_string($_POST["semaine"]) .'"';
 
 
while($requete2=mysql_query($sql));
 
$row=mysql_fetch_assoc($requete2));
 
$resultat=mysql_num_rows($requete2);
   {     
        $sem=$row["semaine"];
        $site=$row["site"];
        $solde=$row["solde"];
        $comute=$row["comute"];
        $idr=$row["idrealise"];
        $annul=$row["annule"];
        $rendu=$row["rendu"];
        $formlib=$row["formlib"];
        $taux=$row["tauxpictrel"];
 
 
 echo("   <tr bgcolor=\"$color\" onmouseover=\"javascript:this.style.background='#4792a4';\" onmouseout=\"javascript:this.style.background='$color';\">
      <td width=\"20%\" align=\"left\">$site</td>
      <td width=\"20%\" align=\"center\">$solde</td>
      <td width=\"20%\" align=\"center\">$comute</td>
      <td width=\"20%\" align=\"center\">$idr</td>
	  <td width=\"10%\" align=\"center\">$annul</td>
	  <td width=\"10%\" align=\"center\">$rendu</td>
   </tr>\n");
}
?>
<?php include("../default/inc/footer.php"); ?>