string db2_conn_error    ([ resource $connection  ] )

db2_conn_error Returns a string containing the SQLSTATE returned by the last connection attempt

connection

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