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(); -} -