From dab3e2c8b08ba1681e405cfe1e906bc430d03cce Mon Sep 17 00:00:00 2001 From: Evelyn Date: Wed, 17 Dec 2025 10:36:48 +0700 Subject: [PATCH] test --- Config.php | 2 +- test_db.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test_db.php diff --git a/Config.php b/Config.php index 2834f8f..c6c537f 100644 --- a/Config.php +++ b/Config.php @@ -5,7 +5,7 @@ $user = "root"; $password = ""; $database = "users_db"; -$conn = new mysqli("localhost", "root", "", "users_db", 3307); +$conn = new mysqli($host, $user, $password, $database); if ($conn->connect_error) { die("Koneksi gagal: " . $conn->connect_error); diff --git a/test_db.php b/test_db.php new file mode 100644 index 0000000..f103ba3 --- /dev/null +++ b/test_db.php @@ -0,0 +1,8 @@ +connect_error) { + die("❌ GAGAL: " . $conn->connect_error); +} +echo "✅ KONEKSI BERHASIL"; +?>