sasql_error

Returns the error text of the most recently executed SAP Sybase IQ 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. To obtain the corresponding error code value, use the sasql_errorcode function.

Prototype

string sasql_error( [ sasql_conn $conn ] )

Parameters

$conn – The connection resource returned by a connect function.

Returns

A string describing the error.