string db2_conn_errormsg    ([ resource $connection  ] )

db2_conn_errormsg Returns the last connection error message and SQLCODE value

connection

A connection resource associated with a connection that initially succeeded, but which over time became invalid.