summaryrefslogtreecommitdiffstats
path: root/includes/sqlEmbedded.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-01-14 14:49:51 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-01-14 14:49:51 -0800
commit59fc439d341900d99c00a31ff1653b274ba2a037 (patch)
tree5bd4b89bb500bc5557750228030ee0f2b8e2fb6d /includes/sqlEmbedded.php
parentfab36d921f22cb5999357932785e03aa88269f8d (diff)
parent532faa4d5cc5b20fba8422c87b0aac846874af43 (diff)
downloadpathery-59fc439d341900d99c00a31ff1653b274ba2a037.tar.xz
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
Conflicts: css/challenge.css
Diffstat (limited to 'includes/sqlEmbedded.php')
-rw-r--r--includes/sqlEmbedded.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/sqlEmbedded.php b/includes/sqlEmbedded.php
new file mode 100644
index 0000000..b7a32b5
--- /dev/null
+++ b/includes/sqlEmbedded.php
@@ -0,0 +1,7 @@
+<?php
+include_once('db.inc.php');
+
+global $mysqlid;
+$mysqlid = @mysql_connect($db_host,$db_user, $db_pass) or die("Cannot connect to database.");
+@mysql_select_db($db_name, $mysqlid) or die("Invalid database.");
+?>