mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Removed reference to secondary database link $ldb
This means that both the limesurvey and the quexs tables must be in the same database, with the same connection But has the advantage of being able to join records across tables easily
This commit is contained in:
@@ -72,12 +72,6 @@ $db->Connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||
$db->SetFetchMode(ADODB_FETCH_ASSOC);
|
||||
if (DEBUG == true) $db->debug = true;
|
||||
|
||||
//global database variable for limesurvey
|
||||
$ldb = newADOConnection(LDB_TYPE);
|
||||
$ldb->Connect(LDB_HOST, LDB_USER, LDB_PASS, LDB_NAME);
|
||||
$ldb->SetFetchMode(ADODB_FETCH_ASSOC);
|
||||
if (DEBUG == true) $ldb->debug = true;
|
||||
|
||||
//store session in database (see sessions2 table)
|
||||
ADOdb_Session::config(DB_TYPE, DB_HOST, DB_USER, DB_PASS, DB_NAME,$options=false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user