guarda qui
mysql_num_rows($tuaquery) ti dice quante righe hai ottenuto