diff options
Diffstat (limited to 'intern/api/db.php')
| -rw-r--r-- | intern/api/db.php | 8 |
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); |
