wapdesire quiz

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    wapdesire quiz

    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
    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&amp;sid=$sid&amp;q=$q&amp;a=a&amp;quid=$quid&amp;l=$l\">$a</a></i><br/>
    
    <i><a href=\"./quiz.php?action=answer&amp;sid=$sid&amp;q=$q&amp;a=b&amp;quid=$quid&amp;l=$l\">$b</a></i><br/>
    
    <i><a href=\"./quiz.php?action=answer&amp;sid=$sid&amp;q=$q&amp;a=c&amp;quid=$quid&amp;l=$l\">$c</a></i><br/>
    
    <i><a href=\"./quiz.php?action=answer&amp;sid=$sid&amp;q=$q&amp;a=d&amp;quid=$quid&amp;l=$l\">$d</a></i>";
    
    echo "</p>";
    
    echo "<center>&lt;- <a href=\"./quiz.php?action=play&amp;sid=$sid\">Back</a><br/>
    
    &lt;- <a href=\"./index.php?action=main&amp;sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Main Menu</a></center>";
    
    echo "</body>";
    
    echo "</html>";
    
    }
    cheers
    Wapchat4u


    Topsites4u

    #2
    iv just tested this out the coding is correct what is your database like

    i have included a database for you to test it with .

    change the .txt back to .sql and upload and just change the table name to dave_quiz etc
    Attached Files
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      na still dont work with those tables in.
      Wapchat4u


      Topsites4u

      Comment


        #4
        hmm ok thats odd. try this one from my old lava version with the databases.
        Attached Files
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          exactly the same. . .
          Wapchat4u


          Topsites4u

          Comment


            #6
            did you use my version of coding and my database?
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              yep all i did was change ibwf to my own ..
              Wapchat4u


              Topsites4u

              Comment


                #8
                where is this on the server what account il have a look. that code should defo work 100%
                Want something coded email me at sales@webnwaphost.com for a prices.




                Comment


                  #9
                  my site .....
                  Wapchat4u


                  Topsites4u

                  Comment


                    #10
                    i had this problem lol....

                    Comment


                      #11
                      the problem is with the globals. i turned them on on wapchat and it worked mate. well thats in nclemales case but i dont now if urs is the same problem animal.
                      Want something coded email me at sales@webnwaphost.com for a prices.




                      Comment


                        #12
                        so surely this can be fixed without having globals on ? like i have tried anyway lol
                        Wapchat4u


                        Topsites4u

                        Comment


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

                          Comment


                            #14
                            yes it can dave. u just gota look through it and make sure you got everything globalised.
                            Want something coded email me at sales@webnwaphost.com for a prices.




                            Comment

                            Working...
                            X