Returns the number of rows affected by the last INSERT,
UPDATE, or DELETE query on the connection referred to by
$conn.
This function is typically used for INSERT,
UPDATE, or DELETE statements. For
SELECT statements, use the sybase_num_rows() function
instead.
Syntax
int sybase_affected_rows([resource $conn])
Parameters
- $conn – the connection resource returned by a connection opening function. If the connection
resource isn't specified, the most recently opened connection is used.
Returns
The number of rows affected by the last INSERT, UPDATE,
or DELETE query.