<table>
<tr>
<?
include("ayar.php");
$satir=1;
$sorgu=mysql_query("SELECT * FROM videolar order by hit desc LIMIT 12");  
while($ciz=mysql_fetch_array($sorgu)){
$nill=herma($ciz['baslik']);
?>
<td><th scope="col"><div align="center">
                                  <table width="136" 
                                border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tbody>
                                      <tr>
                                        <td colspan="3" height="0"><img 
                                src="index_files/category.gif" /></td>
                                      </tr>
                                      <tr>
                                        <td width="13"><img 
                                src="index_files/categorz.gif" /></td>
                                        <td width="110"><div align="center"><a href="oyunlar-<? echo $ciz['id'];?>-<? echo $nill;?>.html" title="<? echo $ciz['baslik'];?>"><img src="<? echo $ciz['resim'];?>" width="109" height="82" border="0"></a></div></td>
                                        <td width="13"><img 
                                src="index_files/categos0.gif" /></td>
                                      </tr>
                                      <tr>
                                        <td colspan="3"><img 
                                src="index_files/categos1.gif" /></td>
                                      </tr>
                                    </tbody>
                                  </table><a href="oyunlar-<? echo $ciz['id'];?>-<? echo $nill;?>.html" class="ara" title="<? echo $ciz['baslik'];?>"><? echo $ciz['baslik'];?></a><br>
<a href="oyunlar-<? echo $ciz['id'];?>-<? echo $nill;?>.html" class="kategori" title="<? echo $ciz['baslik'];?>"><? echo $ciz['hit'];?> kez oynandı</a></div></td>
 </div></th></td> 
<?php
if(($satir % 4) == 0){
echo '</tr><tr>'
}
$satir++;
}
?>
</tr>
</table>
Sanırım istedeğin bu.