Warning: Undefined array key "name" in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 5
Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 5
Warning: Undefined array key "category" in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 6
Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 6
Warning: Undefined array key "price" in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 9
Warning: Undefined array key "quantity" in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 10
Warning: Undefined array key "description" in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 13
Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 13
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 2 in /home/yehc/public_html/440/Final/admin_add_new_product.php:20
Stack trace:
#0 /home/yehc/public_html/440/Final/admin_add_new_product.php(20): mysqli_query(Object(mysqli), 'INSERT INTO pro...')
#1 {main}
thrown in /home/yehc/public_html/440/Final/admin_add_new_product.php on line 20