<?
$isimyzs = mysql_query("select * from yazilar ORDER BY id DESC LIMIT 0,30");
$katSzs = mysql_num_rows($isimyzs);
$sayaczs = 0;
while($katFzs = mysql_fetch_array($isimyzs))
{
$idxzs[$sayaczs] = $katFzs["id"];
$baslikxzs[$sayaczs] = $katFzs["baslik"];
$sayaczs++;
}
$dongu1 = 10;
$dongu2 = $dongu1 + 10;
$dongu3 = $dongu2 + 10;
?>
<TABLE width="760" cellpadding="0" cellspacing="0">
<TR>
<TD width="252">
<? for($k=0;$k<$dongu1;$k++) { ?>
<a href="<? echo ucwords($baslikxzs[$k])) ?>-<? echo $idxzs[$k]; ?>.html"><? echo $baslikxzs[$k]; ?></a><br />
<?} ?>
</TD>
<TD width="252">
<? for($k=$dongu1;$k<$dongu2;$k++) { ?>
<a href="<? echo ucwords($baslikxzs[$k])) ?>-<? echo $idxzs[$k]; ?>.html"><? echo $baslikxzs[$k]; ?></a><br />
<?} ?>
</TD>
<TD width="252">
<? for($k=$dongu2;$k<$dongu3;$k++) { ?>
<a href="<? echo ucwords($baslikxzs[$k])) ?>-<? echo $idxzs[$k]; ?>.html"><? echo $baslikxzs[$k]; ?></a><br />
<?} ?>
</TD>
</TR>
</TABLE>