1
Line 100 and 101 print:
Error Code: $e_code
ERROR: $errmsg[$e_code]
while it should print a errorcode and message.
change line 100 and 101 from:
echo 'Error Code: $e_code<br /><br /><br />';
echo '<strong>ERROR:</strong> $errmsg[$e_code]<br /><br /><br />';
to
echo 'Error Code: '.$e_code.'<br /><br /><br />';
echo '<strong>ERROR:</strong> '.$errmsg[$e_code].'<br /><br /><br />';