git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nieuws/replies: read contents from database
[minimedit.git]
/
database.inc.php
diff --git a/database.inc.php
b/database.inc.php
new file mode 100644
(file)
index 0000000..
6e040d4
--- /dev/null
+++ b/
database.inc.php
@@ -0,0
+1,4
@@
+<?php
+$dsn = require '.dbconfig.inc.php';
+$options = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ];
+$Db = new PDO($dsn, NULL, NULL, $options);