session_start(); require_once("db.php"); include 'functions.inc.php'; ipland(); $id = $_POST["product_ID"]; $aantal = $_POST["qty"]; $action = $_GET["action"]; $country = $_GET["country"]; $result = mysql_query("SELECT product_Price, gewicht FROM products WHERE product_ID = '$id'"); $row = mysql_fetch_array($result); $prijs = $row["product_Price"]; $totaal = ($aantal * $prijs); $gew = $row["gewicht"]; $gewicht = ($gew * $aantal); if($aantal == 0) { dellCustomerProduct($id); totaalgewicht(); } elseif($aantal > 0) { addCustomerProduct($id, $aantal, $totaal, $prijs, $gewicht); totaalgewicht(); } if($action == 'delete') { dellCart(); ipland(); totaalgewicht(); } if(!empty($country)) { landupdate($country); } ?>
|
|||||||||||||||||||||||||||||