load(); if (!isset($_SESSION['user'])) { die("Toegang geweigerd. Log eerst in via het dashboard."); } // Database connectie via ENV $db = new mysqli($_ENV['DB_HOST'], $_ENV['DB_USER'], $_ENV['DB_PASS'], $_ENV['DB_NAME']); if ($db->connect_error) { die("Database connectie mislukt."); } $result = $db->query("SELECT * FROM sales_logs ORDER BY created_at DESC LIMIT 100"); ?>
| Tijdstip | Agent | Actie | Omschrijving |
|---|---|---|---|
| = $row['created_at'] ?> | = htmlspecialchars($row['username']) ?> | = $row['action'] ?> | = htmlspecialchars($row['details']) ?> |