int sasql_stmt_errno( sasql_stmt $stmt )
Returns the error code 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.
An integer error code. For a list of error codes, see SQL Anywhere error messages sorted by SQLCODE.