If you set php's error_reporting to E_ALL and display_errors to ON, php will help you by reporting and displaying all the errors it detects.

You have a hand full of mismatching names between your...