This commit is contained in:
Akshay Naik
2013-04-24 16:12:55 +05:30
parent 130f2b2148
commit 50c824c9ff
2 changed files with 13 additions and 9 deletions
+4
View File
@@ -15,6 +15,10 @@ class MYSQLi_DB {
var $connection;
function MYSQL_DB() {
$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error());
## Added even MySQL connection for inline mysql commands in temeplate files
$con = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB, $this->connection);
}
function register($username, $password, $email, $tribe, $act) {