prepare("SELECT * FROM posts WHERE id = ?"); $stmt->execute([$_GET['id']]); $post = $stmt->fetch(); if (!$post) { header("Location: index.php"); exit; } ?>

by

Back to Posts

About

This is a simple blog created with PHP and Bootstrap. You can find articles about web development, productivity, and more.