summaryrefslogtreecommitdiff
path: root/intern/api/db.php
diff options
context:
space:
mode:
authorHorus32016-03-02 23:27:49 +0100
committerHorus32016-03-02 23:27:49 +0100
commite5a172ed69f41098719cbe2be3f173b1d3f9ac65 (patch)
tree43bd716442f078891e8d36de4e3c07f067269c3f /intern/api/db.php
parente99e40df74d1292a0434d4deb647dd76f22eeca3 (diff)
downloadgospeladlershof.de-e5a172ed69f41098719cbe2be3f173b1d3f9ac65.tar.gz
Fügt die PHP API hinzu. Diesmal mit richtigen Umlauten. :)
Diffstat (limited to 'intern/api/db.php')
-rw-r--r--intern/api/db.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/api/db.php b/intern/api/db.php
new file mode 100644
index 0000000..9521148
--- /dev/null
+++ b/intern/api/db.php
@@ -0,0 +1,8 @@
+<?php
+require_once __DIR__ . '/config.php';
+$db = new pdo($dsn, $db_user, $db_passwd);
+$db->exec('SET CHARACTER SET utf8');
+
+unset($dsn);
+unset($db_user);
+unset($db_passwd);