prepare( "DELETE FROM post WHERE post_id= ?;" )) { $sql->bind_param( "i", $id_post); $sql->execute(); $sql->close(); } $mysqli->close(); header ("Location: index.php" ); ?>