From 09ab3dbc6df41fc2ee761672e85071f02802f6d6 Mon Sep 17 00:00:00 2001 From: klnsancho Date: Sun, 2 Nov 2025 20:30:01 +0000 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"include"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/db.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/db.php diff --git a/include/db.php b/include/db.php new file mode 100644 index 0000000..2e41307 --- /dev/null +++ b/include/db.php @@ -0,0 +1,13 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} catch (PDOException $e) { + die("Erreur de connexion : " . $e->getMessage()); +} +?>