diff options
author | Wesley Dillingham <WWdillingham@sugarlabs.org> | 2009-08-06 18:02:07 (GMT) |
---|---|---|
committer | Wesley Dillingham <WWdillingham@sugarlabs.org> | 2009-08-06 18:02:07 (GMT) |
commit | 0b153d87c36893dab13d10bc8972e147c3935969 (patch) | |
tree | b0fffe14c149a28c0e758b6b1c7a92d5e5547717 | |
parent | afc2d9d1f656df3e1b9b6b96f6ab3fc39a803535 (diff) |
determine which attempt we are on for each question attempts[question_id]++
-rw-r--r-- | 4.N.10_Parser.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index e08432a..92eeda9 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -63,6 +63,9 @@ for (i=0;i<=$numRecords;i++) //Need to associate question_id with student $whose_question[$question_id] = $student_id; + + //Need to determine which attempt this is for this particular question + $attempts[$question_id]++; //How many correct submissions are there - @@ -75,7 +78,8 @@ for (i=0;i<=$numRecords;i++) if ($submitted_sum > $correct_sum) { $num_overpaid[$student_id]++; - } + } + } } |