From 9ea2c2191953160d3337528e40f8b1eef2f2716c Mon Sep 17 00:00:00 2001 From: 65160377 <65160377@go.buu.ac.th> Date: Sat, 29 Mar 2025 02:37:32 +0700 Subject: [PATCH] Initial commit --- includes/signin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/signin.php b/includes/signin.php index 1f529fe..b0d94ac 100644 --- a/includes/signin.php +++ b/includes/signin.php @@ -17,6 +17,11 @@ if ($result && password_verify($password, $result['Password'])) { echo "<script>alert('Invalid Details');</script>"; } +if (!$dbh) { + die("Connection failed: " . mysqli_connect_error()); +} else { + echo "Database connected successfully"; +} } -- GitLab