prepare("SELECT * FROM posts WHERE id = ?"); $stmt->execute([$_GET['id'] ?? 0]); $post = $stmt->fetch(); if (!$post) { header("Location: index.php"); exit; } $page_title = htmlspecialchars($post['title']); $page_description = htmlspecialchars(substr($post['content'], 0, 160)); include 'header.php'; ?>

By on

Back to Home