diff options
author | Wesley Dillingham <WWdillingham@sugarlabs.org> | 2009-08-06 17:43:09 (GMT) |
---|---|---|
committer | Wesley Dillingham <WWdillingham@sugarlabs.org> | 2009-08-06 17:43:09 (GMT) |
commit | e8ef809d026bc96681183bba7d1ffc26975a1563 (patch) | |
tree | f0a981eadc2121d351746e4355b4eef015971b15 | |
parent | cdabb9c72395ffa988bc8bf8e71b8933c1c26bb3 (diff) |
associating question_id with student_id
-rw-r--r-- | 4.N.10_Parser.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index febab18..fb8d42a 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -60,6 +60,16 @@ for (i=0;i<=$numRecords;i++) $correct_sum = $tok[2]; $submitted_sum = $tok[3]; $correct = $tok[4]; + + //Need to associate question_id with student + $whose_question[$question_id] = $student_id; + + + //How many correct submissions are there + if ($submitted_sum == $correct_sum) + { + $num_correct[$student_id]++; + } } } |