<?=mysql_num_rows(mysql_query("select no from table2 where no='a1'")) ?>
<? $tmp = mysql_query("select count(no) from table2 where no='a1'"); $adet = mysql_fetch_array($tmp); echo $adet; ?>