This function is deprecated. You should use the following PHP function instead: sasql_errorcode.
Returns the error code of the most-recently executed SQL Anywhere PHP function. Error codes are stored per connection. If
no link_identifier is specified, then sqlanywhere_errorcode returns the last error code where no connection was available. For example, if you
are calling sqlanywhere_connect and the connection fails, then call sqlanywhere_errorcode with no parameter for the link_identifier to get the error code. If you want to get the corresponding error message use the sqlanywhere_error function.
An integer representing a SQL Anywhere error code. An error code of 0 means success. A positive error code indicates success
with warnings. A negative error code indicates failure.