here is the full error
Fatal error: Uncaught mysqli_sql_exception: 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 ':' at line 4 in C:\xampp\htdocs\food-order\Backend\add-admin.php:62 Stack trace: #0 C:\xampp\htdocs\food-order\Backend\add-admin.php(62): mysqli_query(Object(mysqli), 'INSERT INTO tb...') #1 {main} thrown in C:\xampp\htdocs\food-order\Backend\add-admin.php on line 62.
Here is the SQL code
// Execute the query and Save data into database
$conn = mysqli_connect('localhost', 'root', '') or die(mysqli_error($conn));
$db_select = mysqli_select_db($conn, 'food-order') or die(mysqli_error($conn));
$res = mysqli_query($conn, $sql) or die(mysqli_error($conn));
}
?>
the $res code seems to be the one with the syntax error but i cannot find it