$asd=mysql_query("SELECT COUNT(*) FROM yazilar");
$adet = mysql_fetch_array($asd);
echo $adet[0];