.
Divya
in php mysqli_affected_rows() function is used to returns the number of affected rows in the previous SELECT, INSERT, UPDATE, REPLACE, or DELETE query.
mysqli_affected_rows(connection);