Warning: Undefined array key "product_name" in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 13
Warning: Undefined array key "category" in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 14
Warning: Undefined array key "price" in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 15
Warning: Undefined array key "quantity" in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 16
Warning: Undefined array key "description" in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 17
Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 17
INSERT INTO products (prodName,category,price,quantity,descriptio) values ('','','','',''
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in /home/awadall4/public_html/final/handle_admin_add_new_product.php:28
Stack trace:
#0 /home/awadall4/public_html/final/handle_admin_add_new_product.php(28): mysqli_query(Object(mysqli), 'INSERT INTO pro...')
#1 {main}
thrown in /home/awadall4/public_html/final/handle_admin_add_new_product.php on line 28