Replaced invalid PHP short-tags with correct tags.
Corrected errors in SQL
Corrected Class method definitions.
Included Navigation Class. Included JQuery dependency via CDN.