Kod;
<? include("ayar.php");
$sorgu=mysql_query("SELECT * FROM videolar order by hit desc LIMIT 12");
$satir = 0;
while($ciz=mysql_fetch_array($sorgu)){
$satir++;
include("ayar.php");
$nill=herma($ciz['baslik']);
if(($satir % 4) !== 0){?>
<td><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><? }else{?>
<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="ara1" title="<? echo $ciz['baslik'];?>"><? echo $ciz['baslik'];?></a><br>
<a href="oyunlar-<? echo $ciz['id'];?>-<? echo $nill;?>.html" class="kategori1" title="<? echo $ciz['baslik'];?>"><? echo $ciz['hit'];?> kez oynandı</a>
</div></th>
<? }}?>
.

, aşağıdaki kodlar doğru dizilmiş 16 adet resime ait şimdi bunlara göre nasıl bir sorgu yazmalıyız;