From 31f3f1046a6947abe2819e2aefb75ec10a81e6eb Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Sun, 16 Mar 2003 04:32:32 +0000 Subject: [PATCH] Fixed order of query, to sort by GID git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@35 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/statistics.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/statistics.php b/admin/statistics.php index 9a1c9a4d03d..31e6a6d7ab0 100644 --- a/admin/statistics.php +++ b/admin/statistics.php @@ -60,7 +60,7 @@ echo "\n"; echo "\t\n"; // 1: Get list of questions with predefined answers from survey -$query = "SELECT qid, gid, type, title FROM questions WHERE sid='$sid' AND type IN ('5', 'G', 'L', 'O', 'M', 'P', 'Y', 'A', 'B', 'C')"; +$query = "SELECT qid, gid, type, title FROM questions WHERE sid='$sid' AND type IN ('5', 'G', 'L', 'O', 'M', 'P', 'Y', 'A', 'B', 'C') ORDER BY gid"; $result = mysql_query($query) or die("Couldn't do it!
$query
".mysql_error()); while ($row=mysql_fetch_row($result)) { @@ -125,11 +125,11 @@ $result = mysql_query($query) or die ("Couldn't get answers!
$query
".mysql_error()); while ($row=mysql_fetch_row($result)) { - $myfield2 = $myfield."X$row[0]"; + $myfield2 = $myfield."$row[0]"; echo "\n"; echo "\t\t\t\t
$setfont$flt[3] ($row[0])
\n"; - echo "\t\t\t\t\n"; for ($i=1; $i<=5; $i++) { echo "\t\t\t\t\t
$setfont$flt[3] ($row[0])
\n"; - echo "\t\t\t\t\n"; for ($i=1; $i<=10; $i++) { echo "\t\t\t\t\t
$setfont$flt[3] ($row[0])
\n"; - echo "\t\t\t\t\n"; echo "\t\t\t\t\t\n";