config.sample
This commit is contained in:
parent
be92c1ea5d
commit
a1e5602b87
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,5 +6,7 @@
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
config.php
|
||||
|
||||
|
||||
|
||||
|
17
config.sample.php
Normal file
17
config.sample.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
$db_server = "mariadb";
|
||||
$db_user = "dbuser";
|
||||
$db_passwd = "dbpassword";
|
||||
|
||||
$db = "unfallstatistik";
|
||||
|
||||
try {
|
||||
$db = new PDO('mysql:host='.$db_server.';dbname='.$db.';charset=utf8mb4', $db_user, $db_passwd);
|
||||
} catch (PDOException $e) {echo "Fehler: ".$e->getMessage(); die();}
|
||||
|
||||
$numStartYear=2019;
|
||||
$numLatestYear=2022;
|
||||
|
Loading…
Reference in New Issue
Block a user