Error number
$connection
Returns the last error number, for the last command.
connection
The connection identifier.
Returns the last error number or 0 if no error occurred.