PHP mysqli_affected_rows() function is called on a database connection and returns the number of affected rows in the previous MySQL operation.
Syntax
Parameter | Description |
---|---|
Connection : | Required parameter. The MySQL connection to be used |
Return Value : | Returns integer > 0 indicates number of affected rows. 0 if no record affected |