Merhaba Kendine Göre Uyarlarsın
Yorumyaz.php
<form action="yorum_kaydet.php" method="post">
Mesajınız : <input type="text" name="mesaj">
<input type="submit" value="Gönder">
<input type="hidden" name="konuid" value="$konuid">
</form>
yorum_kaydet.php
<?php
$mesaj = $_POST['mesaj'];
$konuid = $_POST['konuid'];
$mesajekle = mysql_query("insert into yorumlar (konuid,mesaj) values ('$konuid','$mesaj')");
if($mesajekle){
echo "Mesaj eklendi";
}else{
echo "Mesaj eklenemedi";
}
?>konu.php ==> Kendine Göre Uyarlarsın Artık
<?php
$konuid = $_GET['konuid']
$yaz = mysql_fetch_array(mysql_query("select * from yorumlar where konuid='$konuid'"));
$mesaj = $yaz['mesaj']
echo "x Diyorki".$mesaji;
?>