Warning: Undefined array key "IdToUpdate" in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 6

Warning: Undefined array key "FirstName" in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 7

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 7

Warning: Undefined array key "Surname" in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 8

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 8

Warning: Undefined array key "DoB" in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 9

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/wyvernsi/public_html/gMorton/class22/UpdateStudent.php on line 9

GET parameters sanitised

Database opened and sql prepared
UPDATE Student SET FirstName=:fname, Surname=:sname, DoB=:dob WHERE StudentID=:id

Attempting to prepare a statement...

firstname is bound

surname is bound... show the date:


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