prepare("SELECT * FROM menu_items WHERE id IN ($placeholders)"); $stmt->execute($menu_item_ids); $db_items = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach ($db_items as $item) { $quantity = $_SESSION['cart'][$item['id']]; $item_total = $item['price'] * $quantity; $total_price += $item_total; $cart_items[] = [ 'id' => $item['id'], 'name' => $item['name'], 'price' => $item['price'], 'quantity' => $quantity, 'total' => $item_total ]; } } ?>

Your Cart

Your cart is empty.

Item Price Quantity Total Action
$
$ Remove

Total: $