www-docker-git/www/public/index.php

16 lines
365 B
PHP
Raw Normal View History

2022-09-23 08:00:18 +00:00
<h1>Git</h1>
2022-09-23 08:57:16 +00:00
<h2>Med Te3</h2>
2022-09-23 07:56:59 +00:00
<p><strong>Denna sida (index.php) skall bytas ut.</strong></p>
<?php
// Testar att mariaDB fungerar
$myPDO = new PDO('mysql:host=mariadb;port=3306;dbname=mysql', 'root', '12345');
$result = $myPDO->query("SELECT * FROM db");
foreach ($result as $row) {
echo $row['Db'] . '<hr>';
}
phpinfo();
?>