Da quanto ho capito le funzioni che vanno in errore sono:
mysql_num_rows,
mysql_fetch_row.

bhooo