mysql
This commit is contained in:
parent
7a4affe6ac
commit
449b1d5a00
26
config.php
26
config.php
@ -1,15 +1,27 @@
|
||||
<?php
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
$dbFilename = "db/unfallorte";
|
||||
$db = new SQLite3($dbFilename);
|
||||
|
||||
$strTitle = "Unfallkarte Hamm ";
|
||||
$strIntroText = "Unfallkarte für die Stadt Hamm basierend auf den Daten des Statistischen Bundesamtes.";
|
||||
$numInfoLat =51.66;
|
||||
$numInfoLng =7.825;
|
||||
// $dbFilename = "db/unfallorte";
|
||||
// $db = new SQLite3($dbFilename);
|
||||
|
||||
$db_server = "mariadb";
|
||||
$db_user = "unfallstatistik";
|
||||
$db_passwd = "BCJloVozJbdDHQTS";
|
||||
$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();}
|
||||
|
||||
|
||||
$strTitle = "Unfallkarte Soest ";
|
||||
$strIntroText = "Unfallkarte für die Stadt Soest basierend auf den Daten des Statistischen Bundesamtes.";
|
||||
$numInfoLat =51.5718;
|
||||
$numInfoLng =8.10716;
|
||||
$numZoom=12;
|
||||
$fileGeojson ="geojson/hamm.geojson";
|
||||
$fileGeojson ="geojson/soest.geojson";
|
||||
$strLocation = " AND ULAND=5 AND UREGBEZ=9 AND UKREIS=74 AND UGEMEINDE=40 ";
|
||||
|
||||
$arrVehicles = array (
|
||||
1 => "Fahrrad",
|
||||
|
Loading…
Reference in New Issue
Block a user