Pourquoi es-ce que ce while ne s'execute pas
Posté : 08 mai 2007, 15:47
Voila le probleme : tout ce qu'il a dans le while ne s'execute pas. (juste l'entete et le bas du tableau apparait, comment faire pour que ce qu'il y a dans le while aparaise (sauf les commandes mises en commentaire)
$i=1;
Echo"<table border='2'>";
echo "<tr>
<td> Référence</td>
<td> Designation</td>
<td> Prix unitaire</td>
<td> Quantité commandé</td>
<td>total pour ce produit</td>
</tr>";
while ($i>=14)
{
//If($faire['$i']=1)
//{
//$Prix=$prix[$i];
//$ref=$ref[$i];
//$qte=$qte[$i];
//$total=$total[$i];
Echo "<tr>";
Echo "<td>";
Echo $ref[$i];
Echo "</td>
<td>";
Echo $des[$i];
Echo "</td>
<td>";
Echo $prix[$i];
Echo "</td>
<td>";
Echo $qte[$i];
Echo "</td>
<td>";
Echo $total;
Echo "</td>";
Echo "</tr>";
//}
//else
//{
//};
};
echo "<tr>
<td> </td>
<td> </td>
<td> </td>
<td>Total Brut: </td>
<td>$totalbrut</td>
</tr>";
echo "<tr>
<td> </td>
<td> </td>
<td> </td>
<td>Tva (19.6%)</td>
<td>$tva</td>
</tr>";
echo "<tr>
<td> </td>
<td> </td>
<td> </td>
<td> <u>Total à payer :</u></td>
<td>$Totalreel</td>
</tr>";
Echo "</table>";
Echo "<hr>";[/code][/quote]