Quiz Module - Need combined rankings help please

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Quiz Module - Need combined rankings help please
Browser
CZ Super Newbie
 Codezwiz Site Donator
Browser has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 14, 2004
0.01 posts per day
Posts: 48
Points: 5,631
   
I am using the "Quizz" module by xbee for phpnuke. It displays a ranking for each quiz within a subject using the code below and I would like to have a combined ranking so each time a member completes a new quiz the combined ranking will increase instead of having a bunch of seperate rankings. A new row is created each time the user completes a quiz with the table cells

ip time username email qid score answers

Thank you

code:
if ($displayscore)
{
$ress = mysql_query("SELECT username, score FROM ${prefix}_quizz_check WHERE qid='$qid' ORDER BY score DESC,time DESC LIMIT $nbscore ");
print "<br><br>";
if (mysql_num_rows($ress)>0)
{
echo "<font class=catdesc>"._QUIZZLISTSCORE.":<br></font>";
while(list($username,$res) = mysql_fetch_row($ress))
{
print "<font class=catdesc>$username : $res<br></font>";
}
print "<br>";
}
}



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum