summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
authorhorus2022-11-26 23:21:50 +0100
committerhorus2022-11-26 23:21:50 +0100
commit8ae270da94654e12c7b23bf93994249058ac9e2f (patch)
tree1b5ee3c29cee2a0740124992f2907ec62b039aee /db.php
downloadhochzeit-8ae270da94654e12c7b23bf93994249058ac9e2f.tar.gz
Initial commit
Diffstat (limited to 'db.php')
-rw-r--r--db.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/db.php b/db.php
new file mode 100644
index 0000000..d5508a0
--- /dev/null
+++ b/db.php
@@ -0,0 +1,14 @@
+<?php
+
+require_once __DIR__ . '/db_passwd.php';
+
+/**
+ * password is set in db_passwd.php
+ *
+ * $db_passwd = "";
+ */
+
+$db_name = "hochzeit";
+$db_user = "hochzeit";
+
+$db = new PDO('mysql:host=192.168.122.1;dbname='.$db_name, $db_user, $db_passwd);