Attempting to insert to mysql Database


Warning: Undefined array key "FirstName" in /home/wyvernsi/public_html/ethanGuo/addstudent.php on line 12

Warning: Undefined array key "Surname" in /home/wyvernsi/public_html/ethanGuo/addstudent.php on line 13

Warning: Undefined array key "DoB" in /home/wyvernsi/public_html/ethanGuo/addstudent.php on line 14
Connected successfully

Database opened and sql prepared
INSERT INTO CLASS23_Student (StudentID, FirstName, SurnName, DoB) VALUES ( null, ?, ?, ?)


Fatal error: Uncaught TypeError: date_format(): Argument #1 ($object) must be of type DateTimeInterface, bool given in /home/wyvernsi/public_html/ethanGuo/addstudent.php:26 Stack trace: #0 /home/wyvernsi/public_html/ethanGuo/addstudent.php(26): date_format() #1 {main} thrown in /home/wyvernsi/public_html/ethanGuo/addstudent.php on line 26