config.sample

This commit is contained in:
Walter Hupfeld 2023-10-06 12:57:28 +02:00
parent be92c1ea5d
commit a1e5602b87
2 changed files with 19 additions and 0 deletions

2
.gitignore vendored
View File

@ -6,5 +6,7 @@
!.vscode/extensions.json
*.code-workspace
config.php

17
config.sample.php Normal file
View 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;