Je moet ingelogd zijn om te stemmen.
<?php echo "<table width=\"90%\" cellspacing=\"0\">"; echo "<tr>"; echo "<td class=\"titel\" width=\"70%\"><b>Naam</b></td><td class=\"titel\" width=\"15%\"><b>Aantal</b></td><td width=\"15%\" class=\"titel\"><b>Prijs</b></td><td></td>"; echo "</tr>"; foreach($_SESSION['mand'] as $key=>$val) { $aantal = $_SESSION['mand'][$key]; $q_prod = mysql_query("SELECT * FROM `shop_producten` WHERE `id`='".$key."'") or die(mysql_error()); while($prod = mysql_fetch_object($q_prod)) { $subtotaal = $aantal * $prod->prijs; echo "<tr class=\"prod\">"; echo "<td>".$prod->naam."</td><td>".$aantal."</td><td>€ ".$subtotaal."</td><td><a href=\"shopmand.php?min=".$key."\"><img src=\"_images/min.png\" border=\"0\"></a> <a href=\"shopmand.php?bestel=".$key."\"><img src=\"_images/plus.png\" border=\"0\"></a></td>"; echo "</tr>"; } } echo "<tr class=\"totaal\">"; echo "<td>Totaal:</td><td></td><td>€ ".$totaal."</td><td></td>"; echo "</tr>"; echo "</table>"; ?>
<?phpecho "<table width=\"90%\" cellspacing=\"0\">";echo "<tr>";echo "<td class=\"titel\" width=\"70%\"><b>Naam</b></td><td class=\"titel\" width=\"15%\"><b>Aantal</b></td><td width=\"15%\" class=\"titel\"><b>Prijs</b></td><td></td>";echo "</tr>";foreach($_SESSION['mand'] as $key=>$val){$aantal = $_SESSION['mand'][$key];$q_prod = mysql_query("SELECT * FROM `shop_producten` WHERE `id`='".$key."'") or die(mysql_error());while($prod = mysql_fetch_object($q_prod)){$subtotaal = $aantal * $prod->prijs;echo "<tr class=\"prod\">";echo "<td>".$prod->naam."</td><td>".$aantal."</td><td>€ ".$subtotaal."</td><td><a href=\"shopmand.php?min=".$key."\"><img src=\"_images/min.png\" border=\"0\"></a> <a href=\"shopmand.php?bestel=".$key."\"><img src=\"_images/plus.png\" border=\"0\"></a></td>";echo "</tr>";}}echo "<tr class=\"totaal\">";echo "<td>Totaal:</td><td></td><td>€ ".$totaal."</td><td></td>";echo "</tr>";echo "</table>";?>
<table width="90%" cellspacing="0"> <tr> <td class="titel" width="70%"><b>Naam</b></td> <td class="titel" width="15%"><b>Aantal</b></td> <td class="titel" width="15%"><b>Prijs</b></td> <td></td> </tr> <?php $totaal = 0; foreach($_SESSION['mand'] as $key=>$val) { $aantal = $_SESSION['mand'][$key]; $q_prod = mysql_query("SELECT * FROM `shop_producten` WHERE `id`='".$key."'") or die(mysql_error()); while($prod = mysql_fetch_object($q_prod)) { $subtotaal = $aantal * $prod->prijs; $totaal += $subtotaal; ?> <tr class="prod"> <td><?=$prod->naam?></td> <td><?=$aantal?></td> <td>€ <?=$subtotaal?></td> <td><a href="shopmand.php?min=<?=$key?>"><img src="_images/min.png" border="0"></a> <a href="shopmand.php?bestel=<?=$key?>"><img src="_images/plus.png" border="0"></a></td> </tr> <?php } } ?> <tr class="totaal"> <td>Totaal:</td> <td></td> <td>€ <?=$totaal?></td> <td></td> </tr> </table>
<table width="90%" cellspacing="0"> <tr> <td class="titel" width="70%"><b>Naam</b></td> <td class="titel" width="15%"><b>Aantal</b></td> <td class="titel" width="15%"><b>Prijs</b></td> <td></td> </tr> <?php$totaal = 0; foreach($_SESSION['mand'] as $key=>$val){ $aantal = $_SESSION['mand'][$key]; $q_prod = mysql_query("SELECT * FROM `shop_producten` WHERE `id`='".$key."'") or die(mysql_error()); while($prod = mysql_fetch_object($q_prod)) { $subtotaal = $aantal * $prod->prijs; $totaal += $subtotaal; ?> <tr class="prod"> <td><?=$prod->naam?></td> <td><?=$aantal?></td> <td>€ <?=$subtotaal?></td> <td><a href="shopmand.php?min=<?=$key?>"><img src="_images/min.png" border="0"></a> <a href="shopmand.php?bestel=<?=$key?>"><img src="_images/plus.png" border="0"></a></td> </tr> <?php }}?> <tr class="totaal"> <td>Totaal:</td> <td></td> <td>€ <?=$totaal?></td> <td></td> </tr></table>
<table width="90%" cellspacing="0"> <tr> <td class="titel" width="70%"><strong>Naam</strong></td> <td class="titel" width="15%"><strong>Aantal</strong></td> <td class="titel" width="15%"><Strong>Prijs</strong></td> </tr> <?php foreach($_SESSION['mand'] as $key => $val) { $aantal = $_SESSION['mand'][$key]; $qGetProd = mysql_query("SELECT * FROM `shop_producten` WHERE `id`= ".$key) or die(mysql_error()); while($prod = mysql_fetch_assoc($qGetPro)) { $subtotaal = $aantal * $prod['prijs']; $totaal += $subtotaal; ?> <tr class="prod"> <td><?= $prod['naam']; ?></td> <td><?= $aantal; ?></td> <td>€ <?= $subtotaal; ?></td> <td> <a href="shopmand.php?min=<?= $key; ?>"><img src="./_images/min.png" border="0" /></a> <a href="shopmand.php?bestel=<?= $key; ?>"><img src="./_images/plus.png" border="0" /></a> </td> </tr> <?php } } ?> <tr class="totaal"> <td>Totaal:</td> <td></td> <td>€ <?= $totaal; ?></td> <td></td> </tr> </table>
<table width="90%" cellspacing="0"> <tr> <td class="titel" width="70%"><strong>Naam</strong></td> <td class="titel" width="15%"><strong>Aantal</strong></td> <td class="titel" width="15%"><Strong>Prijs</strong></td> </tr> <?php foreach($_SESSION['mand'] as $key => $val) { $aantal = $_SESSION['mand'][$key]; $qGetProd = mysql_query("SELECT * FROM `shop_producten` WHERE `id`= ".$key) or die(mysql_error()); while($prod = mysql_fetch_assoc($qGetPro)) { $subtotaal = $aantal * $prod['prijs']; $totaal += $subtotaal; ?> <tr class="prod"> <td><?= $prod['naam']; ?></td> <td><?= $aantal; ?></td> <td>€ <?= $subtotaal; ?></td> <td> <a href="shopmand.php?min=<?= $key; ?>"><img src="./_images/min.png" border="0" /></a> <a href="shopmand.php?bestel=<?= $key; ?>"><img src="./_images/plus.png" border="0" /></a> </td> </tr> <?php } } ?> <tr class="totaal"> <td>Totaal:</td> <td></td> <td>€ <?= $totaal; ?></td> <td></td> </tr></table>