added www

This commit is contained in:
2026-01-25 02:47:13 +00:00
parent 5d1c47d46b
commit 22c26fd4e4
8 changed files with 115 additions and 2 deletions

13
www/test_db.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
$link = mysqli_connect("database", "root", $_ENV['MYSQL_ROOT_PASSWORD'], null);
if (!$link) {
echo "Error: Unable to connect to MySQL." . PHP_EOL;
echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
exit;
}
echo "Success: A proper connection to MySQL was made! The docker database is great." . PHP_EOL;
mysqli_close($link);