diff --git a/index.php b/index.php index 96f5dedee4f0eedbb1b11069d8d0125f8192cfb7..7a183d354149fcd2e3979af18a701b9fa446418d 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"; ?>