Guest User

Untitled

a guest
Dec 15th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. mysqli_data_seek($rs, $_SESSION[qn]);
  2. $row= mysqli_fetch_row($rs);
  3. echo "<form name=myfm method=post action=quiz.php>";
  4. echo "<table width=100%> <tr> <td width=30>&nbsp;<td> <table border=0>";
  5. $n=$_SESSION[qn]+1;
  6. echo "<tR><td><span class=style2>Que ". $n .": $row[2]</style>";
  7. echo "<tr><td class=style8><input type=radio name=ans value=1>$row[3]";
  8. echo "<tr><td class=style8> <input type=radio name=ans value=2>$row[4]";
  9. echo "<tr><td class=style8><input type=radio name=ans value=3>$row[5]";
  10. echo "<tr><td class=style8><input type=radio name=ans value=4>$row[6]";
  11.  
  12. if($_SESSION[qn]<mysqli_num_rows($rs)-1)
  13. echo "<tr><td><input type=submit name=submit value='Next Question'></form>";
  14. else
  15. echo "<tr><td><input type=submit name=submit value='Get Result'></form>";
  16. echo "</table></table>"; }
Add Comment
Please, Sign In to add comment