(PHP 5, PHP 7)
Gets the number of affected rows in a previous MySQL operation
int mysqli_affected_rows ( mysqli $link )
Object oriented style
int $mysqli->affected_rows;
Procedural style
Returns the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE query.
For SELECT statements mysqli_affected_rows() works like mysqli_num_rows().
Parameters:
link
P