'; $c=1; while($row = mysqli_fetch_array($result)) { $title = $row['title']; $total = $row['total']; $sahi = $row['sahi']; $eid = $row['eid']; $q12=mysqli_query($con,"SELECT score FROM history WHERE eid='$eid' AND email='$email'" )or die('Error98'); $rowcount=mysqli_num_rows($q12); if($rowcount == 0){ echo ''; } else { echo ''; } } $c=0; echo '
S.N.
Topic
Total question
Marks
Action
'.$c++.'
'.$title.'
'.$total.'
'.$sahi*$total.'
 Start
'.$c++.'
'.$title.' 
'.$total.'
'.$sahi*$total.'
 Restart
'; }?> '; while($row=mysqli_fetch_array($q) ) { $qns=$row['qns']; $qid=$row['qid']; echo 'Question  '.$sn.' ::

'.$qns.'


'; } $q=mysqli_query($con,"SELECT * FROM options WHERE qid='$qid' " ); echo '

'; while($row=mysqli_fetch_array($q) ) { $option=$row['option']; $optionid=$row['optionid']; echo' '.$option.'

'; } echo'
'; } if(@$_GET['q']== 'result' && @$_GET['eid']) { $eid=@$_GET['eid']; $q=mysqli_query($con,"SELECT * FROM history WHERE eid='$eid' AND email='$email' " )or die('Error157'); echo '

Result


'; while($row=mysqli_fetch_array($q) ) { $s=$row['score']; $w=$row['wrong']; $r=$row['sahi']; $qa=$row['level']; echo ''; } $q=mysqli_query($con,"SELECT * FROM rank WHERE email='$email' " )or die('Error157'); while($row=mysqli_fetch_array($q) ) { $s=$row['score']; echo ''; } echo '
Total Questions'.$qa.'
right Answer '.$r.'
Wrong Answer '.$w.'
Score '.$s.'
Overall Score '.$s.'
'; } ?> '; $c=0; while($row=mysqli_fetch_array($q) ) { $eid=$row['eid']; $s=$row['score']; $w=$row['wrong']; $r=$row['sahi']; $qa=$row['level']; $q23=mysqli_query($con,"SELECT title FROM quiz WHERE eid='$eid' " )or die('Error208'); while($row=mysqli_fetch_array($q23) ) { $title=$row['title']; } $c++; echo ''; } echo'
S.N.
Quiz
Question Solved
Right
Wrong
Score
'.$c.'
'.$title.'
'.$qa.'
'.$r.'
'.$w.'
'.$s.'
'; } if(@$_GET['q']== 3) { $q=mysqli_query($con,"SELECT * FROM rank ORDER BY score DESC " )or die('Error223'); echo '
'; $c=0; while($row=mysqli_fetch_array($q) ) { $e=$row['email']; $s=$row['score']; $q12=mysqli_query($con,"SELECT * FROM user WHERE email='$e' " )or die('Error231'); while($row=mysqli_fetch_array($q12) ) { $name=$row['name']; } $c++; echo ''; } echo '
Rank
Name
Email
Score
'.$c.'
'.$name.'
'.$e.'
'.$s.'
'; } ?>