prepare("SELECT * FROM municipalities WHERE slug = :slug"); $stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); $municipality = $stmt->fetch(); if (!$municipality) { http_response_code(404); echo "

404 — Municipality not listed in Database.

"; exit; } // Loads News for Sidebar $stmt = $pdo->prepare("SELECT * FROM news WHERE municipality_id = :mid ORDER BY published_at DESC LIMIT 10"); $stmt->execute([':mid' => $municipality['municipality_id']]); $news_items = $stmt->fetchAll(); ?> Mitmachkarte <?= htmlspecialchars($municipality['name']) ?>

Mitmachkarte