nette ajax yorum ekleme sistemi buldum bunu düzenlemek istedim fakat başarılı olamadım.

<div id="ajax_response">	
		<?php
			//echo "select * from comment order by date_added desc";
			$resultSet = mysql_query("select * from yorumlar order by id desc");
			if(mysql_num_rows($resultSet))
			{
				while($resultRow = mysql_fetch_array($resultSet))
				{
					$iid    = stripslashes($resultRow['iid']); 
					$gonderen    = stripslashes($resultRow['gonderen']); 
					$yorum = stripslashes($resultRow['yorum']);
					$ip = stripslashes($resultRow['yorum']);
					$tarih	 = $date_added = date("l j F Y, g:i a",$resultRow['tarih']);
										?>
					<div class="comment_holder">
					  <div id="photo"><img src="images/user.gif" width="60" height="70"><br><?=$name;?></div>
					<div id="comment_text"><div id="date_posted"><?=$date;?></div><?=$comment;?></div></div>
					<?
				}
			}
			else 
				echo '<span class="no_comments">Bu isime henüz yorum eklenmemiş. <br />Yorum ekleyebilirsiniz.</span>';
		?>
	</div>
	<table border="0" cellpadding="4" cellspacing="0" class="comment_table" width="40%">
	  <tr>
	    <td>İsim :</td>
		<td><input type="text" name="gonderen" id="gonderen" size="30"></td>
	  </tr>
	  <tr>
	    <td>e-posta adresi :</td>
		<td><input type="text" name="e-posta" id="e-posta" size="30"></td>
	  </tr>
	  <tr>
	    <td valign="top">Yorumunuz :</td>
		<td><textarea name="yorum" id="yorum" rows="5" cols="30"></textarea></td>
	  </tr>
	  <tr>
		<td></td>
	    <td align="left"><input type="button" value="Yorum Ekle" id="submit">&nbsp;<img src="<?php echo $siteismi ?>/images/loading.gif" id="loading"></td>
	  </tr>
	</table>
<?php
	include("baglan.php");
	
	$gonderen       = addSlashes($_POST['gonderen']);
        $iid       = addSlashes($_POST['iid']);
	$e-posta      = $_POST['e-posta'];
	$yorum    = addSlashes($_POST['yorum']);
	$tarih = time();
	
	$check = mysql_query("insert into yorumlar(gonderen,e-posta,yorum,tarih) values('$gonderen','$e-posta','$yorum','$tarih')");
	
	$tarih = date("l j F Y, g:i a",time());

	if($check)
		echo $tarih;
	else
		echo "0";
?>
Bunu bi türlü çalıştıramadım.
yardımcı oolursanız sevinirim


eagle_one adlı üyeden alıntı: mesajı görüntüle
Mantık doğru. İstersen Tarih, IP adresi ve katılan/katılmayan tarzı sütunlar ekleyebilirsin. Sayfa altına da yorum çekerken
select * from yorumlar where konuid='$id' and onay='1' order by id desc
tarzı çekim yaparak listeletebilirsin.
Çok teşekkür ederim hocam.
Ben yapmaya çalışayım takıldığım konularda yardımcı olursanız sevinirim.