Lid |
|
Hallo mensen,
Ik probeer data uit mijn database te halen en in een tabel te zetten, niet zo moeilijk.
Maar nu kamp ik in het volgende probleem, ik heb 4 rijen en daar moet gewoon de geloopte data doorkomen maar dat gaat niet.
html tabel voorbeeld:
[row1][row2][row3] <= Komt zelfde data
[row1][row2][row3] <= Komt zelfde data in alle drie de rows
De code ziet er zo uit:
<?php
while($piR = mysql_fetch_array($piQ)) {
echo " <table width='657' height='250' border='0' cellspacing='0'>
<tr>
<td width='104' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td>
<td width='104' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td>
<td width='104' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td>
<td width='104' align='center'>".$piR[ProductString]."<<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td>
<td width='100' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td>
</tr>
<tr>
<td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td>
<td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td>
<td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td>
<td align='center' valign='middle'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td>
<td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td>
</tr>
</table><br></div>"; ?>
<?php echo " <table width='657' height='250' border='0' cellspacing='0'> <tr> <td width='104' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td> <td width='104' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td> <td width='104' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td> <td width='104' align='center'>".$piR[ProductString]."<<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td> <td width='100' align='center'>".$piR[ProductString]."<div align='center'><img src='images/phones/".$piR[ProductPicLoc]."_100x150.jpg' width='100' height='150' border='1' alt=".$piR[ProductString]." /> <br>Prijs</td> </tr> <tr> <td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td> <td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td> <td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td> <td align='center' valign='middle'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td> <td align='center'><a href='telefoons_detail.php?ID=".$piR[ID]."'> Meer Informatie </a></td> </tr> </table><br></div>"; ?>
Dank voor jullie hulp
|