Je moet hier de $_POST['postid']
. doorgeven
if(isset($_POST['posteraser'])){
$postid = $_POST['postid'];
$sql = query("DELETE FROM post_list WHERE postid = '$postid' ");
redirect ('home.php');
}
OF als proceduremanier
$sql = query("DELETE FROM post_list WHERE postid = ? ",$postid);