How can a forum user mark a post as "ERLEDIGT" or resolved in the PHP forum?

To mark a post as "ERLEDIGT" or resolved in the PHP forum, the forum user can add a button or link next to the post that, when clicked, updates the post status in the database. Here is a simple example of how this can be implemented in PHP:

```php
<?php
// Assuming you have a posts table in your database with a column for status

// Connect to the database
$connection = new mysqli('localhost', 'username', 'password', 'dbname');

// Check if the button to mark the post as resolved is clicked
if(isset($_POST['resolve_button'])){
    // Get the post ID from the form submission
    $post_id = $_POST['post_id'];

    // Update the status of the post to 'ERLEDIGT' in the database
    $query = "UPDATE posts SET status = 'ERLEDIGT' WHERE id = $post_id";
    $connection->query($query);
}
?>

<!-- Display the post content -->
<div class="post">
    <p>This is the post content.</p>

    <!-- Form to mark the post as resolved -->
    <form method="post">
        <input type="hidden" name="post_id" value="1"> <!-- Replace 1 with the actual post ID -->
        <input type="submit" name="resolve_button" value="Mark as ERLEDIGT">
    </form>
</div>
```

In this code snippet, the user can click a button to mark the post as "ERLEDIGT" (resolved). The PHP code handles updating the status of the post in the database when the button is clicked. The post ID is passed through a hidden input field in the form.