Si giusto ho risposto a mysql_affected_rows() pensando a mysql_num_rows()