Skip to content

Commit

Permalink
sortorder fixes
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@1960 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Aug 18, 2006
1 parent 5ba3fa6 commit 25d67a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ function buildsurveysession()
//1. SESSION VARIABLE: grouplist
//A list of groups in this survey, ordered by group name.

$query = "SELECT * FROM {$dbprefix}groups WHERE sid=$surveyid ORDER BY {$dbprefix}groups.sortorder";
$query = "SELECT * FROM {$dbprefix}groups WHERE sid=$surveyid ORDER BY {$dbprefix}groups.group_order";
$result = db_execute_assoc($query) or die ("Couldn't get group list<br />$query<br />".htmlspecialchars($connect->ErrorMsg()));
while ($row = $result->FetchRow())
{
Expand All @@ -1110,7 +1110,7 @@ function buildsurveysession()
$query = "SELECT * FROM {$dbprefix}questions, {$dbprefix}groups\n"
."WHERE {$dbprefix}questions.gid={$dbprefix}groups.gid\n"
."AND {$dbprefix}questions.sid=$surveyid\n"
."ORDER BY {$dbprefix}groups.sortorder";
."ORDER BY {$dbprefix}groups.group_order";
$result = db_execute_assoc($query);

$arows = $result->GetRows();
Expand Down

0 comments on commit 25d67a0

Please sign in to comment.