sasql_affected_rows

Prototype
int sasql_affected_rows( sasql_conn $conn )
Description

Returns the number of rows affected by the last SQL statement. This function is typically used for INSERT, UPDATE, or DELETE statements. For SELECT statements, use the sasql_num_rows function.

Parameters

$conn   The connection resource returned by a connect function.

Returns

The number of rows affected.

Related functions