I have a PHP script that will delete a post when a button is pressed, but it doesn't delete it, post stays there.
My code:
    if (isset($_POST['deletePost'])) {
        $postID = $_GET['id'];
        $sqil = "DELETE FROM posts WHERE post_id='$postID'";
        $result = $conn->query($sqil);
    }
