1. verisi
<!-- burasi yeni eklendi -->
<div class="div_100">
<a rel="img/<?php echo $satir2['oresim']; ?>" href="<?php echo $satir2['seo']; ?>.htm"><img width="100" height="105" src="img/<?php echo $satir2['oresim']; ?>" alt="<?php echo $satir2['oyunadi']; ?>" /></a>
</div><div class="altcsol"><ul class="authors">
<!-- burasi yeni eklendi end -->
geri kalan 4 verisi ise :
<li><a rel="img/<?php echo $satir2['oresim']; ?>" href="<?php echo $satir2['seo']; ?>.htm"><?php echo $satir2['oyunadi']; ?></a></li>
böyle listelensin istiyorum yardımcı olursanız sevinirim...
Alttaki eklenmesi gereken php kodu:
<div class="altcorta">
<?php
$sql = mysql_query("SELECT * FROM kategori WHERE ortaonay = 2");
while($satir = mysql_fetch_array($sql)) {
$sqloyun = mysql_query("SELECT * FROM oyunlar WHERE katid='".$satir[katid]."' order by id desc limit 0,5");
echo '<div class="altcat"><h2>'.$satir['kategori'].'</h2>
';
while ($satir2 = mysql_fetch_array($sqloyun)) {
?>
<li><a rel="img/<?php echo $satir2['oresim']; ?>" href="<?php echo $satir2['seo']; ?>.htm"><?php echo $satir2['oyunadi']; ?></a></li>
<?php
}
echo '</ul></div>';
}
?>
</div>