course example

This commit is contained in:
luptmoor
2026-04-15 14:23:12 +02:00
parent d176eb2ec5
commit a8ab95ff3a
72 changed files with 6461 additions and 57 deletions

20
init.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
ob_start();
session_start();
try {
$opt = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false
];
$dsn = "pgsql:host=localhost;dbname=WebGIS;port=5432";
$pdo = new PDO($dsn, 'postgres', '1a2b3c4d5e6f', $opt);
// Error-Message
} catch(PDOException $e) {
echo "Error: ".$e->getMessage();
}
?>