This commit is contained in:
Sebastian Fischlmayr 2024-02-16 09:01:27 +01:00
commit 9767c6bddc
22 changed files with 551 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?php
/*
Ajmi Yasmin, 13.02.2024
Verbindung DB und Schema
*/
try{
$server = 'db'; //Port der DB, standard 3306, kann auch weggelassen werden
$user = 'root';
$pwd = 'ALEPH';
$schema = 'school';
$con = new PDO('mysql:host='.$server.';dbname='.$schema.';charset=utf8', $user, $pwd);
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}catch(Exception $e){
echo $e->getCode().': '.$e->getMessage();
}