string sasql_stmt_error( sasql_stmt $stmt )
Returns the error text for the most recently executed statement function using the specified statement resource.
$stmt A prepared statement resource that was returned by the sasql_prepare function.
A string describing the error. For a list of error messages, see SQL Anywhere error messages.