diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-21 21:35:28 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-21 21:35:28 -0800 |
commit | 1d9b40d68889da8126f8a647f594c0f849baa008 (patch) | |
tree | 1f1bd9c64522a47cf8e0556ac3e38887edb10a3a /includes/sqlEmbedded.php | |
parent | 1a1c2cb7d359a057600d1f0db3efc4a92029ab32 (diff) | |
download | pathery-1d9b40d68889da8126f8a647f594c0f849baa008.tar.xz |
Moved sqli connection to sqlEmbeded.php
Diffstat (limited to 'includes/sqlEmbedded.php')
-rw-r--r-- | includes/sqlEmbedded.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/sqlEmbedded.php b/includes/sqlEmbedded.php index b7a32b5..64fa5c5 100644 --- a/includes/sqlEmbedded.php +++ b/includes/sqlEmbedded.php @@ -1,6 +1,9 @@ <?php include_once('db.inc.php'); +global $mysqli; +$mysqli = @mysqli_connect($db_host, $db_user, $db_pass, $db_name) or die("SQLI Failed to connect to database"); + 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."); |