Advertisement
Guest User

Untitled

a guest
May 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $marks=0;
  2. $correct = 0;
  3. while ($row=mysqli_fetch_assoc($result)){
  4. $exam_name = $row['exam_name'];
  5. $exam_percentage = $row['exam_pass_percentage'];
  6. if($row['a_sortorder'] == $json['responses'][0][1][$row['qid']]){
  7. $marks = $marks + 4;
  8. $correct++;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement