(PHP 3, PHP 4, PHP 5)
Returns the numeric error code of the last executed statement on the specified cursor or connection.
Notatka: Support for connection ids was added in 3.0.4.