Initial Push

This commit is contained in:
2020-07-15 15:54:34 +02:00
parent 0d1da6e46c
commit 5540f0944d
7 changed files with 85 additions and 0 deletions

10
www-data/connect.php Normal file
View File

@@ -0,0 +1,10 @@
$host = 'mysql';
$user = getenv('MYSQL_USER');
$pass = getenv('MYSQL_PASSWORD');
$conn = mysqli_connect($host, $user, $pass);
if (!$conn) {
exit('Connection failed: '.mysqli_connect_error().PHP_EOL);
}
echo 'Successful database connection!'.PHP_EOL;

1
www-data/index.html Normal file
View File

@@ -0,0 +1 @@
HTML

1
www-data/index.php Normal file
View File

@@ -0,0 +1 @@
echo 'Welcome!';