$answer){ //Check the answer hasn't already been submitted. $testQuery=mysql_query("select count(id) as c from ".$mysqlAnswerTable." where sn=".$_SESSION['sn']." and question=".$question); if(mysql_error()){ echo "Please report this to the administrator: ".mysql_error(); die; } if(mysql_result($testQuery,0,'c')!=0) {mysql_close(); header("location:".$nextQuestionURL); die(); }; $query="insert into ".$mysqlAnswerTable."(sn,course,question,answer,certainty,tstamp) values('".mysql_escape_string($_SESSION['sn'])."','".mysql_escape_string($_SESSION['course'])."',".$question.",".$answer.",".$certainty.",".time().")"; mysql_query($query); if(mysql_error()){ echo "Please report this to the administrator: ".mysql_error(); die; } } //Go to the next question. mysql_close(); header("location:".$nextQuestionURL); die(); } else if(isset($_POST['Submit'])) $flag=1; ?> Pre-Quiz
While I was watching the multimedia, I invested:
extremely low mental effort very low mental effort low mental effort rather low mental effort neither low nor high mental effort rather high mental effort high mental effort very high mental effort extremely high mental effort