dosnt show question or the clickable answers ..
i believe its to do with register_globals not on anymore and have tried adding various $blah = $_GET["blah"];
but its still not showing. anyone shed any light on it
cheers
i believe its to do with register_globals not on anymore and have tried adding various $blah = $_GET["blah"];
but its still not showing. anyone shed any light on it
Code:
else if($action=="questions")
{
addonline(getuid_sid($sid),"Quiz ","");
$row_quizusers=mysql_fetch_array(mysql_query("select * from dave_quizusers where uid='".getuid_sid($sid)."'"));
if($row_quizusers[$dif."_question"]!=0){$q=$row_quizusers[$dif."_next"];}
$row_quiz=mysql_fetch_array(mysql_query("SELECT * FROM dave_quiz WHERE difficulty='".$dif."' AND number='".$q."'"));
echo "<head>";
echo "<title>".getnick_sid($sid)."@Quiz</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<div><b><i>Quiz<br/>Question $q</i></b></div>";
if($start=yes){
mysql_query("insert into dave_quizusers set easy_question='".$q."', easy_next='".$q."', med_question='".$q."', med_next='".$q."', hard_question='".$q."', hard_next='".$q."', uid='".getuid_sid($sid)."'");
}
$question = $row_quiz["question"];
$a = $row_quiz["answer1"];
$b = $row_quiz["answer2"];
$c = $row_quiz["answer3"];
$d = $row_quiz["answer4"];
$q = $row_quiz["number"];
$quid = $row_quiz["id"];
$l = $row_quiz["difficulty"];
echo "<p align=\"center\">
<b>$question</b>
</p>
<p align=\"center\">
<i><a href=\"./quiz.php?action=answer&sid=$sid&q=$q&a=a&quid=$quid&l=$l\">$a</a></i><br/>
<i><a href=\"./quiz.php?action=answer&sid=$sid&q=$q&a=b&quid=$quid&l=$l\">$b</a></i><br/>
<i><a href=\"./quiz.php?action=answer&sid=$sid&q=$q&a=c&quid=$quid&l=$l\">$c</a></i><br/>
<i><a href=\"./quiz.php?action=answer&sid=$sid&q=$q&a=d&quid=$quid&l=$l\">$d</a></i>";
echo "</p>";
echo "<center><- <a href=\"./quiz.php?action=play&sid=$sid\">Back</a><br/>
<- <a href=\"./index.php?action=main&sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Main Menu</a></center>";
echo "</body>";
echo "</html>";
}
Comment