Your screen shot shows the page using IE as the browser, have you tried using another browser?
IE is picky about output on the page before the doctype tag. any output on the page before the doctype causes IE to go into quirlks mode. in quirks mode, IE usees the 5.5 rendering engine.
There are two spots I see that would cause this.
1) line 25 - 27:
?>
<?php?>
<?php
delete the <?php?> at line 26:
?>
<?php
2) line 5 - 7:
?>
<?php require_once('Connections/LovingPanda.php'); ?>
delete the blank line at line 6:
?>
<?php require_once('Connections/LovingPanda.php'); ?>