Warning: Undefined array key "name" in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 5
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 5
Warning: Undefined array key "type" in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 6
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 6
Warning: Undefined array key "price" in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 7
Warning: Undefined array key "quantity" in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 8
Warning: Undefined array key "description" in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 9
Fatal error: Uncaught mysqli_sql_exception: Incorrect integer value: '' for column 'price' at row 1 in /home/perez243/public_html/final/handle_admin_add_new_product.php:15
Stack trace:
#0 /home/perez243/public_html/final/handle_admin_add_new_product.php(15): mysqli_query(Object(mysqli), 'INSERT INTO pro...')
#1 {main}
thrown in /home/perez243/public_html/final/handle_admin_add_new_product.php on line 15