How can the issue of not displaying anything when clicking on "Karte" be resolved in the PHP code?

Issue: The problem of not displaying anything when clicking on "Karte" can be resolved by ensuring that the PHP code properly retrieves and displays the data related to the "Karte" option. This can be achieved by checking the logic and query used to fetch the data and ensuring that it is correctly implemented.

<?php
// Assuming $connection is the database connection object

if(isset($_GET['karte'])) {
    $query = "SELECT * FROM your_table_name WHERE condition = 'your_condition'";
    $result = mysqli_query($connection, $query);

    if(mysqli_num_rows($result) > 0) {
        while($row = mysqli_fetch_assoc($result)) {
            // Display the data here
            echo $row['column_name'];
        }
    } else {
        echo "No data found.";
    }
}
?>