From a01d7875a96eaffc9f2604fb0b25052e11dcd301 Mon Sep 17 00:00:00 2001 From: rubisalpha Date: Thu, 30 Oct 2025 11:45:25 +0000 Subject: [PATCH] Ajouter public/article.php --- public/article.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 public/article.php diff --git a/public/article.php b/public/article.php new file mode 100644 index 0000000..fcd1830 --- /dev/null +++ b/public/article.php @@ -0,0 +1,31 @@ +prepare('SELECT * FROM articles WHERE id = :id'); +$stmt->execute(['id' => $id]); +$article = $stmt->fetch(); +if (!$article) { + http_response_code(404); + include __DIR__ . '/404.php'; + exit; +} +?> + + +<?php echo esc($article['titre']); ?> + + +

+
+

PubliƩ le

+
+
+ + +