mysql_affected_rows
mysql_affected_rows([link_id])
This function returns the number of affected rows in the previous MySQL INSERT, UPDATE, DELETE, or REPLACE operation performed with the specified link_id.
If the link is not specified, then the last-opened link is assumed. It returns -1 if
the previous operation failed.