summaryrefslogtreecommitdiffstats
path: root/includes/sqlEmbedded.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-01-13 00:48:07 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-01-13 00:48:07 -0600
commit468e9a700736166f175b974e185d24d0d2a4f33e (patch)
treeb6285a4ff0922225655575b96cfb775a9ed0174c /includes/sqlEmbedded.php
parentbc85a3f1cf8030f1d6400f24b70ea16f717350bd (diff)
downloadpathery-468e9a700736166f175b974e185d24d0d2a4f33e.tar.xz
db.inc.php now only contains the database login info; the actual connection to the DB has been moved to includes/sqlEmbedded. This was done so we don't need to have the db info in two separate files (one of which is in the repo, derp)
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.");
+?>