rep init
This commit is contained in:
commit
9767c6bddc
22 changed files with 551 additions and 0 deletions
17
app/public/function/conf.inc.php
Normal file
17
app/public/function/conf.inc.php
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue