sqlany_affected_rows

Returns the number of rows affected by execution of the prepared statement.

Syntax

sqlany_affected_rows ( $stmt )

Parameters

Returns

Returns a scalar value that is the number of rows affected, or -1 on failure.

Example

affected = api.sqlany_affected( stmt )