Warning: Undefined array key "first_name" in /home/saini/public_html/assignment9/handle_form.php on line 11
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/saini/public_html/assignment9/handle_form.php on line 11
Warning: Undefined array key "last_name" in /home/saini/public_html/assignment9/handle_form.php on line 12
Warning: Undefined array key "email" in /home/saini/public_html/assignment9/handle_form.php on line 13
Warning: Undefined array key "donationType" in /home/saini/public_html/assignment9/handle_form.php on line 14
Warning: Undefined array key "value" in /home/saini/public_html/assignment9/handle_form.php on line 15
Warning: Undefined array key "comments" in /home/saini/public_html/assignment9/handle_form.php on line 16
INSERT INTO donation (fname, lname ,email, donationType, value, date,comments)VALUES ('', '', '', '', '', now(), '')
Fatal error: Uncaught mysqli_sql_exception: Incorrect integer value: '' for column 'value' at row 1 in /home/saini/public_html/assignment9/handle_form.php:24
Stack trace:
#0 /home/saini/public_html/assignment9/handle_form.php(24): mysqli_query(Object(mysqli), 'INSERT INTO don...')
#1 {main}
thrown in /home/saini/public_html/assignment9/handle_form.php on line 24