Hallo ,
keine Ahnung warum mein Programmcode fkt nicht richtig in php.
Nur <td><?php echo $res4['TTC']; ?> €</td> fkt richtig,
Die Anderen antworten, aber nur die erste Zeile von DDB wird wiedergegeben;
Wieder brauche ich Hilfe von euch :-p
<table border="1" width="100% align="center">
<THEAD align="right" style="font-family:monaco; color:blue">
<tr>
<td width="20">REF</td>
<td width="100">Produit</td>
<td width="300">Detail</td>
<td width="15">HT</td>
<td width="15">TTC</td>
</tr>
</THEAD>
<?php
while($res0= mysql_fetch_assoc($requete2))
while($res1= mysql_fetch_assoc($requete1))
while($res2= mysql_fetch_assoc($requete3))
while($res3= mysql_fetch_assoc($requete4))
while($res4= mysql_fetch_assoc($requete5))
{
?>
<tr>
<td><?php echo $res0['codcon']; ?></td>
<td><?php echo $res1['article']; ?></td>
<td><?php echo $res2['detail']; ?></td>
<td><?php echo $res3['HT']; ?> €</td>
<td><?php echo $res4['TTC']; ?> €</td>
</tr>
<?php
}
?>
</table>
//je les fais en html mes touts et décales dans les cellules.
</html>
<TABLE border="1" width="100%" align="center">
<THEAD align="right" style="font-family:monaco; color:blue">
<TR>
<TD><h6><center>REF<hr></center></h6></TD>
<TD><h6><center>Produit<hr></center></h6></TD>
<TD><h6><center>Detail<hr></center></h6></TD>
<TD><h6><center>HT<hr></center></h6></TD>
<TD><h6><center>TTC<hr></center></h6></TD>
</TR>
</THEAD>
<TBODY align="center" style="font-family:monaco">
<TR>
<TD> <?php while($resultat = mysql_fetch_assoc($requete2))
{echo '<h6>'.$resultat['codcon'].'<hr></h6>';}?> </TD>
<TD> <?php while($resultat = mysql_fetch_assoc($requete1))
{echo '<h6>'.$resultat['article'].'<hr></h6>';}?> </TD>
<TD><?php while($resultat = mysql_fetch_assoc($requete3))
{echo '<h6>'.$resultat['detail'].'<hr></h6>';}?> </TD>
<TD><?php while($resultat = mysql_fetch_assoc($requete4))
{echo '<h6>'.$resultat['HT'].' € <hr></h6>';}?></TD>
<TD><?php while($resultat = mysql_fetch_assoc($requete5))
{echo '<h6>'.$resultat['TTC'].' € <hr></h6>';}?></TD>
</TR>
</TABLE>
Mehr anzeigen