MySQL / PHP MySQL Affected Rows vs Rows Matched PHP’s mysql_affected_rows() is used to get the number of rows that were “affected” by the last query executed using mysql_query(). Therefore, an UPDATE query that set the value of a …