Bir yorum sistemi yaptım. Her resme yorum..
Şimdi 1 tane resim ekleniyor sonrasında daha eklenmiyor. yani her resme bir tane yorum eklettirebiliyorum daha fazlası olmuyor..
<!-- Yorum Başlangıç -->
<?php
$y_sor = mysql_query("SELECT * FROM yorumlar WHERE pid='$id' ORDER BY id DESC");
while($y_yaz=mysql_fetch_array($y_sor)){
$isim = $y_yaz['isim'];
$mesaj = $y_yaz['mesaj'];
$tarih = $y_yaz['tarih'];
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="2" height="1"><img src="images/cerc1.jpg" width="2" height="2"></td>
<td width="100%" background="images/cerc2.jpg"><img src="images/cerc2.jpg" width="2" height="2"></td>
<td width="18" height="1"><img src="images/cerc3.jpg" width="2" height="2"></td>
</tr>
<tr>
<td width="2" background="images/cerc4.jpg"><img src="images/cerc4.jpg" width="2" height="2"></td>
<td valign="top" >
<table class="text15ptRed" width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td background="images/yorumlar.jpg" height="30" align="right"><span class="style3" > <strong><?php echo $tarih; ?></strong></span></td>
</tr>
</tbody>
</table>
<table class="text12ptGrey" width="107%" align="center" border="0" cellpadding="4" cellspacing="4">
<tr>
<td width="74" height="26" valign="top">İsim:</td>
<td valign="top"><?php echo $isim; ?></td>
</tr>
<tr>
<td height="74" valign="top">Mesaj:</td>
<td width="444" valign="top"><label></label>
<?php echo $mesaj; ?> </td>
</tr>
<tbody>
</tbody>
</table></td>
<td width="18" background="images/cerc5.jpg"><img src="images/cerc5.jpg" width="2" height="2"></td>
</tr>
<tr>
<td height="2"><img src="images/cerc6.jpg" width="2" height="2"></td>
<td background="images/cerc7.jpg"><img src="images/cerc7.jpg" width="2" height="2"></td>
<td><img src="images/cerc8.jpg" width="2" height="2"></td>
</tr>
</tbody>
</table><br>
<?php }
?>
<!-- Yorum Bitiş -->Kodlarım bunlar sorunu çözmeme yardıomcı olan arkadşalara şimdiden çok teşekkür ederim..