wapdesire quiz

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

13 replies · 929 views · started 16 years ago · 1 min read

3 participants
nclemale36 Lead · 537 posts #1

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

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>";

}

cheers

animal1982 Junior · 24 posts #13

u r getin error page? or isit just not loading?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close