"0") { while ($ww = mysql_fetch_array($res_ww)) { $aantal = ${"aantal".$ww[ww_id]}; if (($ww[session_aantal] == "0") || ($ww[session_aantal] == "1")) { $startbedrag = $ww[session_prijs]; } else { $startbedrag = $ww[session_prijs]/$ww[session_aantal]; } $prijs = $startbedrag*$aantal; $updatequery = "UPDATE ais_winkelwagen SET session_prijs='$prijs',session_aantal='$aantal' WHERE ww_id='$ww[ww_id]'"; $updatenow = mysql_query("$updatequery") or die($updatequery); $updated = "Uw winkelwagen is bijgewerkt."; } } } ?> Mijn winkelwagen
$updated "; $mijnip = $_SERVER['REMOTE_ADDR']; if ($_SESSION[session_id]) { $res_sql = "SELECT * FROM ais_winkelwagen WHERE session_id='$_SESSION[session_id]' AND session_ip='$mijnip'"; } else { $res_sql = "SELECT * FROM ais_winkelwagen WHERE session_ip='$mijnip'"; } $res_ww= mysql_query($res_sql); $aantal_ww = mysql_num_rows($res_ww); if ($aantal_ww == "0") { echo "U heeft momenteel geen artikelen in uw winkelwagen"; } if ($aantal_ww <> "0") { echo "
"; // START WINKELWAGEN while ($ww = mysql_fetch_array($res_ww)) { ?>
montageoptie selecteren"; } if (($ww[session_soort] == "pjk_item") && ($ww[session_properties])) { $itembelongs = retrieve("SELECT * FROM ais_winkelwagen WHERE ww_id='$ww[session_properties]'"); if ($itembelongs[session_product_naam]) { echo "
hoort bij $itembelongs[session_product_naam]"; } } ?>
"; } elseif ($ww[session_soort] == "pjk_actie") { echo " "; } elseif ($ww[session_soort] =="pjk_doek") { if (strlen($ww[session_image]) >10) { echo " "; } } else { } ?> € 
  Totaal: € ".number_format($totalww, 2, ',', ' ')."
 
"; // EINDE WINKELWAGEN } unset($total_ww); echo "


"; include "../i/footer.php";