2
0
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:
azammitdcarf
2009-05-29 00:04:16 +00:00
parent 268af2bd5e
commit 54bea820c2
8 changed files with 38 additions and 76 deletions

View File

@@ -49,7 +49,6 @@ include ("../functions/functions.xhtml.php");
*/
include("../functions/functions.input.php");
global $ldb;
global $db;
xhtml_head(T_("New: Create new questionnaire"),true,false,array("../js/new.js"));
@@ -119,7 +118,7 @@ $sql = "SELECT s.sid as sid, sl.surveyls_title AS title
AND sl.surveyls_language = 'en' )
WHERE s.active = 'Y'";
$surveys = $ldb->GetAll($sql);
$surveys = $db->GetAll($sql);
foreach($surveys as $s)
{
print "<option value=\"{$s['sid']}\">" . T_("Existing questionnaire:") . " {$s['title']}</option>";