my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);stmt - a statement handle, which was previously allocated by mysql_stmt_init().
Returns the number of affected rows by the last prepared statement associated with mysql, if the operation was an "upsert" (, , or ) statement, or -1 if the last prepared statement failed.