34968-vm/how-it-works.php
Flatlogic Bot 2d8abe32bb V27
2025-10-17 06:23:25 +00:00

28 lines
732 B
PHP

<?php
require_once 'header.php';
require_once __DIR__ . '/db/config.php';
$db = db();
$stmt = $db->prepare("SELECT * FROM pages WHERE page_key = :page_key");
$stmt->bindValue(':page_key', 'how_it_works');
$stmt->execute();
$page = $stmt->fetch();
?>
<div class="container mt-5">
<div class="row">
<div class="col-lg-8 offset-lg-2">
<?php if ($page): ?>
<?php echo $page['content']; ?>
<?php else: ?>
<h1 class="text-center mb-4">How It Works</h1>
<p class="lead">Content not found. Please set up the 'How It Works' page in the admin dashboard.</p>
<?php endif; ?>
</div>
</div>
</div>
<?php
require_once 'footer.php';
?>