Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed licence to lgpl, metaform includes wfpl in tarbal
[wfpl.git]
/
examples
/
db_connect.php
diff --git a/examples/db_connect.php
b/examples/db_connect.php
new file mode 100644
(file)
index 0000000..
ab5b597
--- /dev/null
+++ b/
examples/db_connect.php
@@ -0,0
+1,10
@@
+<?php
+
+require_once('code/wfpl/db.php');
+
+# fill in whatever database credentials you need here:
+db_connect('database_name', 'username', 'password', 'host');
+
+# all fields are optional. see code/wfpl/db.php for details.
+
+?>