Warning: Undefined array key "name" in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 6
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 6
Warning: Undefined array key "category" in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 7
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 7
Warning: Undefined array key "quantity" in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 8
Warning: Undefined array key "price" in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 9
Warning: Undefined array key "imagelink" in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 10
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 10
INSERT INTO products (name, category, price, quantity, imagelink)
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 2 in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php:19
Stack trace:
#0 /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php(19): mysqli_query(Object(mysqli), 'INSERT INTO pro...')
#1 {main}
thrown in /home/rosella/public_html/FINAL PROJECT/handle_admin_add_new_movie.php on line 19