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(); +} +?>