Warning: Undefined array key "name" in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 16
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 16
Warning: Undefined array key "type" in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 17
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 17
Warning: Undefined array key "price" in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 18
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 18
Warning: Undefined array key "quantity" in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 19
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 19
Warning: Undefined array key "description" in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 20
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 20
INSERT INTO `products`(`name`, `catagory`, `price`, `quantity`, `description`) VALUES ('','','','','')
Fatal error: Uncaught mysqli_sql_exception: Incorrect integer value: '' for column 'price' at row 1 in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php:26
Stack trace:
#0 /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php(26): mysqli_query(Object(mysqli), 'INSERT INTO `pr...')
#1 {main}
thrown in /home/levikolb/public_html/infost440/finalProject/handleAdminNewMotorcycle.php on line 26