From 828df3f622a72b45b1e3ef8ba708745f0b7d6778 Mon Sep 17 00:00:00 2001 From: mei Date: Sat, 2 Nov 2024 13:15:35 +0800 Subject: [PATCH] update --- core/db.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/db.php diff --git a/core/db.php b/core/db.php new file mode 100644 index 0000000..9397d17 --- /dev/null +++ b/core/db.php @@ -0,0 +1,13 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} catch (PDOException $e) { + echo "Connection failed: " . $e->getMessage(); +} +?>