added stuff in pair programming session

This commit is contained in:
StockiP
2022-04-29 16:49:07 +02:00
parent c2789efcdc
commit cefac0c252
10 changed files with 179 additions and 16 deletions

9
config/setupDBAccess.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
//setup database access
require_once($_SERVER['DOCUMENT_ROOT'] . '/config/dbaccess.php');
$db = new mysqli($host, $user, $pass, $dbname);
if ($db->connect_errno) {
echo "Failed to connect to MySQL: (" . $db->connect_errno . ") " . $db->connect_error;
}
?>