S.N. | Topic | Total question | Marks | Action |
';
$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 ''.$c++.' | '.$title.' | '.$total.' | '.$sahi*$total.' | Start |
';
}
else
{
echo ''.$c++.' | '.$title.' | '.$total.' | '.$sahi*$total.' | Restart |
';
}
}
$c=0;
echo '
';
}?>
';
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 '
';
}
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 'Total Questions | '.$qa.' |
right Answer | '.$r.' |
Wrong Answer | '.$w.' |
Score | '.$s.' |
';
}
$q=mysqli_query($con,"SELECT * FROM rank WHERE email='$email' " )or die('Error157');
while($row=mysqli_fetch_array($q) )
{
$s=$row['score'];
echo 'Overall Score | '.$s.' |
';
}
echo '
';
}
?>
S.N. | Quiz | Question Solved | Right | Wrong | Score | ';
$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 '
'.$c.' | '.$title.' | '.$qa.' | '.$r.' | '.$w.' | '.$s.' |
';
}
echo'
';
}
if(@$_GET['q']== 3)
{
$q=mysqli_query($con,"SELECT * FROM rank ORDER BY score DESC " )or die('Error223');
echo '