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
';
echo 'ERROR: $errmsg[$e_code]
';
to
echo 'Error Code: '.$e_code.'
';
echo 'ERROR: '.$errmsg[$e_code].'
';