This function is deprecated. You should use the following PHP function instead: sasql_error.
Returns the error text of the most recently executed SQL Anywhere PHP function. Error messages are stored per connection.
If no link_identifier is specified, then sqlanywhere_error returns the last error message where no connection was available. For example, if you
call sqlanywhere_connect and the connection fails, then call sqlanywhere_error with no parameter for link_identifier to get the error message. If you want to obtain the corresponding SQL Anywhere error code value, use the sqlanywhere_errorcode