$order->setSizeId($_SESSION['size']); // $order->setCost($_SESSION['crust']); $order->setDateOrdered($date); $order->setNumberOfPizzas($_SESSION['numberofpizza']); $order->setIsOrderCompleted("0"); $query7 = mysqli_query($mysqli, "SELECT * FROM Tax WHERE ProvinceId =" . $_SESSION['provinceid']); while ($row = mysqli_fetch_array($query7)) { $order->setTaxId($row['Tax']); } $query6 = mysqli_query($mysqli, "SELECT * FROM Crust WHERE CrustId =" . $_SESSION['crust']); while ($row1 = mysqli_fetch_array($query6)) { $crust->setCrustCost($row1['CrustCost']); } $query5 = mysqli_query($mysqli, "SELECT * FROM Size WHERE SizeId =" . $_SESSION['size']); while ($row2 = mysqli_fetch_array($query5)) { $size->setSizeCost($row2['SizeCost']); } $crustcost = $crust->getCrustCost(); $sizecost = $size->getSizeCost(); $oid = $order->getOrderId(); $ouid = $order->getUserId(); $ocid = $order->getCrustId(); $osid = $order->getSizeId(); // $order->getCost($_SESSION['crust']); $odate = $order->getDateOrdered(); $onumberofpizza = $order->getNumberOfPizzas(); $ostatus = $order->getIsOrderCompleted(); $tax = $order->getTaxId(); $top = count($_SESSION['topping']); if ($top > 1) { $resttop = $top - 1;