prepare("
SELECT *
FROM cards
WHERE slug = ?
AND status = 'active'
LIMIT 1
");
$stmt->bind_param("s", $slug);
$stmt->execute();
$result = $stmt->get_result();
$card = $result->fetch_assoc();
if(!$card){
die("Card not found");
}
?>
= htmlspecialchars($card['title']) ?>
= $card['content'] ?>