QUERY Failed! You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order(product_id,customer_name,total_bill,quantity)VALUES(1,'taha khan',5368,22)' at line 1
<?php
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$product = $_POST['product_id'];
$customer_name = $_POST['customer'];
$qty = $_POST['qty'];
$product_cost = $_POST['product_cost'];
$total_bill = $product_cost * $qty;
$result = "INSERT INTO order(product_id,customer_name,total_bill,quantity)VALUES($product,'$customer_name',$total_bill,$qty)";
$query = query($result);
confirmQuery($query);
}
?>