sicuro che ti sei informato? basta cercare con google e si trova

int mysql_affected_rows ([ resource $link_identifier ] )
Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE query associated with link_identifier.


vedi per caso la SELECT fra le operazioni? che senso avrebbe poi questa funzione con la SELECT?