From 07c585839be6b89937391e07209a830df7578e97 Mon Sep 17 00:00:00 2001 From: 65160027 <65160027@go.buu.ac.th> Date: Tue, 18 Mar 2025 18:07:36 +0700 Subject: [PATCH] Add index.php --- index.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.php b/index.php index 96f5ded..7a183d3 100644 --- a/index.php +++ b/index.php @@ -1,2 +1,14 @@ <?php echo "Natnicha Wettamma"; +$servername = "db"; +$username = "demo"; +$password = "12456"; + +// Create connection +$conn = new mysqli($servername, $username, $password); + +// Check connection +if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); +} +echo "Connected successfully"; ?> -- GitLab