Skip to content

Commit

Permalink
Fixed inconsistent ordering of answers between question types. All no…
Browse files Browse the repository at this point in the history
…w ordered by answer not code

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@368 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jun 17, 2003
1 parent e82779b commit 638070e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/printablesurvey.php
Expand Up @@ -226,7 +226,7 @@
break;
case "M": //MULTIPLE OPTIONS (Quite tricky really!)
echo "\t\t\t$setfont<u>Please tick <b>any</b> that apply</u><br />\n";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY answer";
$mearesult = mysql_query($meaquery);
while ($mearow = mysql_fetch_array($mearesult))
{
Expand All @@ -238,7 +238,7 @@
}
break;
case "P": //MULTIPLE OPTIONS WITH COMMENTS
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY answer";
$mearesult = mysql_query($meaquery);
echo "\t\t\t$setfont<u>Please tick any that apply and provide a comment</u><br />\n";
echo "\t\t\t<table border='0'>\n";
Expand Down Expand Up @@ -272,7 +272,7 @@
echo "\t\t\t<input type='checkbox' name='$fieldname' value='N' />No<br />\n";
break;
case "A": //ARRAY (5 POINT CHOICE)
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY answer";
$mearesult = mysql_query($meaquery);
echo "\t\t\t$setfont<u>Please tick the appropriate response for each item</u><br />\n";
echo "\t\t\t<table>\n";
Expand All @@ -291,7 +291,7 @@
echo "\t\t\t</table>\n";
break;
case "B": //ARRAY (10 POINT CHOICE)
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY answer";
$mearesult = mysql_query($meaquery);
echo "\t\t\t$setfont<u>Please tick the appropriate response for each item</u><br />";
echo "\t\t\t<table border='0'>\n";
Expand All @@ -310,7 +310,7 @@
echo "\t\t\t</table>\n";
break;
case "C": //ARRAY (YES/UNCERTAIN/NO)
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY answer";
$mearesult = mysql_query($meaquery);
echo "\t\t\t$setfont<u>Please tick the appropriate response for each item</u><br />\n";
echo "\t\t\t<table>\n";
Expand All @@ -328,7 +328,7 @@
echo "\t\t\t</table>\n";
break;
case "E": //ARRAY (Increase/Same/Decrease)
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY answer";
$mearesult = mysql_query($meaquery);
echo "\t\t\t$setfont<u>Please tick the appropriate response for each item</u><br />\n";
echo "\t\t\t<table>\n";
Expand Down

0 comments on commit 638070e

Please sign in to comment.