2008'den beri159 mesaj
aşağıdaki kodla 3 sütun halinde listeleme yapabiliyorum. kod şu şekilde:
<?php
error_reporting(0);
$db = mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("deneme",$db) or die(mysql_error());
$sorgu = mysql_query("SELECT * FROM taslar");
$intKayitSayisi = 1;
$intGosterilecek = 3;
?>
<table border="0" align="center">
<tr>
<?php
while ($oku=mysql_fetch_assoc($sorgu)){
?>
<td valign="top">
<?php
// echo $oku['aciklama'] . "<br>";
echo $oku['resim'] . "<br>";
?>
</td>
<?php
if ($intKayitSayisi == $intGosterilecek){
echo "</tr><tr>";
$intKayitSayisi = 0; }
$intKayitSayisi = $intKayitSayisi + 1;
}
?>
</tr>
</table>
benim yapmak istediğim, çift tablo içerisinde bunları listelemek. yani şu kodu üsttekin entegre edemedim:
echo "<tr>";
echo "<td><a href=sepet_islem.php?act=add&pid=".$oku["id"].">Add</a></td>";
echo "<td>".$oku["marka"]."</td>";
echo "<td>".$oku["ad"]."</td>";
echo "<td>".$oku["renk"]."</td>";
echo "<td>".$oku["fiyat"]."</td>";
echo "</tr>";
yardım için tşkler