string sasql_error( [ sasql_conn $conn ] )
Returns the error text of the most recently executed SQL Anywhere PHP function. Error messages are stored per connection. If no $conn is specified, then sasql_error returns the last error message where no connection was available. For example, if you call sasql_connect and the connection fails, then call sasql_error with no parameter for $conn to get the error message. If you want to obtain the corresponding SQL Anywhere error code value, use the sasql_errorcode function.
$conn The connection resource returned by a connect function.
A string describing the error. For a list of error messages, see SQL Anywhere error messages.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |