Ek Olarak:
include ('header.php');
if($_POST){
$stmt = $db->prepare("INSERT INTO post(post_no,icerik,saat) VALUES(NULL,?,NOW())");
if($stmt === false) die("sorgu hatası" . $db->error);
$stmt->bind_param("s", $_POST['icerik']);
$stmt->execute();
if(!$stmt) die('Kayıt eklenmedi');
else echo "Başarıyla Kaydedildi";
$sonuc = $db->query("SELECT * FROM post LEFT JOIN uye USING(post_no) WHERE post.post_no=? ORDER BY post_no DESC LIMIT 10 ");
while($row = $sonuc->fetch_array()){
echo '

' . $row['icerik'] . '
';
}
}
?>