From 8cb3c48ed9e08ebc2a77917a4b6abf00c7263d64 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 3 Apr 2026 17:11:52 +0000 Subject: [PATCH] update order error --- api/order.php | 2 ++ test_prepare.php | 21 --------------------- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 test_prepare.php diff --git a/api/order.php b/api/order.php index 0a3ad0d..25e89b9 100644 --- a/api/order.php +++ b/api/order.php @@ -1,4 +1,6 @@ prepare($q); - echo "Update params count: " . preg_match_all('/\?/', $q) . "\n"; - - $q2 = "INSERT INTO orders (source, outlet_id, table_id, table_number, order_type, customer_id, customer_name, customer_phone, car_plate, ready_time, payment_type_id, total_amount, discount, vat, user_id, commission_amount, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'pending')"; - $stmt2 = $pdo->prepare($q2); - echo "Insert params count: " . preg_match_all('/\?/', $q2) . "\n"; -} catch (Exception $e) { - echo $e->getMessage(); -} -