minta bantuan mas-mas/mbak-mbak yang ada disini abe bingung nih mau bikin form komentar kayak facebook yang trus turun dibawah posting kita dan masuk beberapa pixel dari posting utama.
//koneksi
<?php
$host="localhost";
$user="root";
$pass="";
$db="komen";
$sql=mysql_connect($host,$user,$pass) or die("gagal konek".mysql_error());
$select=mysql_select_db($db) or die ("database tidak ada" .mysql_error());
?>
//eksekusi form komentar
<?
require_once ('koneksi.php');
if($_POST) {
$publish = $_POST['tulis'];
$ins="insert into post (post) values ('$publish')";
$query=mysql_query($ins);
?><script language="JavaScript">document.location='index.php'</script><?
}
else {
echo "gagal input";
};
?>
//form komentarnya
<form action="komentar.php" method="post">
<textarea name="tulis"></textarea><br>
<input type="submit" value="publish" name="post">
</form>
<?php
include "koneksi.php";
$result = mysql_query("select * from post order by date DESC");
while ($post = mysql_fetch_array($result)){?>
<p><? echo $post['post']?></p>
<? echo $post['date']?>|<a href="index.php?id=<? echo $post['id'];?>">komentar</a>
<?}
if ($_GET) {?>
<form action="komentar.php" method="post">
<textarea name="tulis"></textarea><br>
<input type="submit" value="publish" name="post">
</form>
<?}
?>
tolong kasih saya penerangan....