[svn r11556] fix a bug with the questions order

skala
Julian Prud'homme 19 years ago
parent f1686d8c89
commit f60bd0b6a2
  1. 9
      main/exercice/exercise_show.php

@ -289,7 +289,14 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme
<tr>
<td colspan="2">
<?php $exerciseTitle=api_parse_tex($test);
$query = "select * from `".$TABLETRACK_ATTEMPT."` where exe_id='$id' group by question_id";
$query = "select * from `".$TABLETRACK_ATTEMPT."` as attempts
INNER JOIN `".$TABLETRACK_EXERCICES."` as stats_exercices ON stats_exercices.exe_id=attempts.exe_id
INNER JOIN ".$TBL_EXERCICE_QUESTION." as quizz_rel_questions ON quizz_rel_questions.exercice_id=stats_exercices.exe_exo_id
INNER JOIN ".$TBL_QUESTIONS." as questions ON questions.id=quizz_rel_questions.question_id
WHERE attempts.exe_id='$id'
GROUP BY questions.position";
$result =api_sql_query($query, __FILE__, __LINE__);
?>
<h3><?php echo stripslashes($test)?>: <?php echo get_lang("Result"); ?></h3>

Loading…
Cancel
Save