word scramble game

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

    word scramble game

    hi can someone help me with this, before i had


    addonline(getuid_sid($sid),"Playing Word Scramble","");
    echo head_tag(getnick_sid($sid)."@Word Scramble",1,getnick_sid($sid));
    $title="<b><i>Word Scramble</i></b>";

    $answer=$_POST["answer"];
    if(empty($_POST["answer"])){
    srand((float)microtime()*10000000);

    $input=mysql_fetch_array(mysql_query("SELECT word1, word2, word3, word4, word5, word6, word7, word8, word9, word10, word11, word12, word13, word14, word15, word16, word17, word18, word19, word20 FROM games WHERE category='wordscramble'"));

    /*
    $input=array(
    "dictionary",
    "recognize",
    "example",
    "entertainment",
    "experiment",
    "appreciation",
    "information",
    "pronunciation",
    "language",
    "government",
    "psychic",
    "blueberry",
    "selection",
    "automatic",
    "strawberry",
    "bakery",
    "shopping",
    "eggplant",
    "chicken",
    "organic ",
    "angel",
    "season",
    "market",
    "information",
    "complete",
    "sunset",
    "unique",
    "customer"
    );
    */
    $rand_keys=array_rand($input,2);
    $word=$input[$rand_keys[0]];
    $Sword=str_shuffle($word);
    $main="<p align=".align().">
    $Sword
    </p>
    <p align=".align().">
    In the text box below type the correct word that is scrambled above.</p>
    <div class=".align().">
    <form method=\"post\" action=\"./wordscramble.php?sid=$sid\">
    <input type=\"text\" name=\"answer\" size=\"20\"/>
    <input type=\"hidden\" name=\"correct\" value=\"$word\"/>
    <input type=\"submit\" value=\"GO!\" name=\"B1\"/>
    </form>
    </div>\n";
    }else{
    $answer=strtolower($answer);
    if($answer==$correct)
    {
    $result="Correct! <b>$answer</b>";
    $uid=getuid_sid($sid);
    $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
    $sqlfet=mysql_fetch_array($sqlfetch);
    $gplusnew=$sqlfet[0]+"25";
    $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
    $res=mysql_query($sql);
    $main="<p align=".align().">
    $result<br/>
    You Have Had 25 game Plusses Added For Winning.
    </p>
    <p align=".align().">
    <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
    </p>\n";
    }else{
    $result="Sorry! The Correct Answer Was <b>$correct</b>.";
    $uid=getuid_sid($sid);
    $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
    $sqlfet=mysql_fetch_array($sqlfetch);
    $gplusnew=$sqlfet[0]-"25";
    $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
    $res=mysql_query($sql);
    $main="<p align=".align().">
    $result<br/>
    You Have Had 25 game Plusses Deducted For Losing.
    </p>
    <p align=".align().">
    <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
    </p>\n";
    }
    }

    $main.="<p align=".align().">
    <a href=\"./games.php?sid=$sid\">Back</a>
    </p>\n";
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$mai n);
    echo foot_tag();
    exit;
    ?>



    that came up without any words to unscramble with a error so i tried

    /////////////////////////////////

    else if($action == "scramble")
    {
    $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
    addonline(getuid_sid($sid),"playing word scramble ($mmsg)","");
    echo "<head>";
    echo "<title>Word Scramble</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    $answer = $_POST["answer"];
    if (empty($_POST["answer"])) {

    srand((float) microtime() * 10000000);
    $input = array(
    "dictionary",
    "recognize",
    "example",
    "entertainment",
    "experiment",
    "appreciation",
    "information",
    "pronunciation",
    "language",
    "government",
    "psychic",
    "blueberry",
    "selection",
    "automatic",
    "strawberry",
    "bakery",
    "shopping",
    "eggplant",
    "chicken",
    "organic ",
    "angel",
    "season",
    "market",
    "information",
    "complete",
    "sunset",
    "unique",
    "customer"
    );
    $rand_keys = array_rand($input, 2);
    $word = $input[$rand_keys[0]];
    $Sword = str_shuffle($word);
    echo "<p align=\"center\">$Sword</p>
    <p align=\"center\">In the
    text box below type the correct word that is scrambled above.</p>
    <form method=\"POST\" action=\"games.php?action=scramble&amp;sid=$sid\">
    <center><input type=\"text\" name=\"answer\" size=\"20\">
    <input type=\"hidden\" name=\"correct\" value=\"$word\">
    <input type=\"submit\" value=\"GO!\" name=\"B1\"></center>
    </form>
    <p align=\"center\"><b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a></p>
    </body>";
    }
    else {
    $answer = strtolower($answer);
    if($answer == $correct){
    $result = "Correct! <b>$answer</b>";
    $uid = getuid_sid($sid);
    $ugpl = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"));
    $ugpl = "25" + $ugpl[0];
    mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");

    echo "<p align=\"center\">$result<br/>You Have Had 25 game Plusses Added For Winning.
    </p>
    <p align=\"center\"><a href=\"games.php?action=scramble&amp;sid=$sid\">Tr y Another Word?</a><br/>
    <b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a></p>
    </body>";}


    else { $result = "Sorry! The Correct Answer Was <b>$correct</b>.";
    $uid = getuid_sid($sid);
    $ugpl = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"));
    $ugpl = $ugpl[0] - "25";
    mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");

    echo "<p align=\"center\">$result<br/>You Have Had 25 game Plusses Deducted For Losing.
    </p>
    <p align=\"center\"><a href=\"games.php?action=scramble&amp;sid=$sid\">Tr y Another Word?</a><br/>
    <b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a></p>
    </body>";
    }
    }
    }


    that shows the word to unscramble but when i press go it takes me bk to games page

    please help

    Added after 4 minutes:

    im using database with ibwf on one and without ibwf on the other sites database one is wapdesire script one is lavalair
    Last edited by Kirsty; 26.02.11, 20:19.

    #2
    change to
    echo "<form action=\"games.php?action=scramble&amp;sid=$sid\" method=\"post\">";

    and add
    $action = $_GET["action"];
    on top page

    Comment


      #3
      i tried

      Originally posted by pichiriche View Post
      change to
      echo "<form action=\.games.php?action=scramble&amp;sid=$sid\" method=\"post\">";

      and add
      $action = $_GET["action"];
      on top page
      i changed to $action = $_GET["action"];
      echo "<form action=\"..games\wordscramble.php?action=scramble& amp;sid=$sid\" method=\"post\">"; but now im getting

      Fatal error: Call to undefined function getsetmood() in /home/chatabox/public_html/sexydevilz.co.uk/games/wordscramble.php on line 33
      Last edited by Kirsty; 26.02.11, 20:54. Reason: wrong code

      Comment


        #4
        getsexmood()
        is funtion on core.php no in the game.php

        Comment


          #5
          can someone share wordscramble.php please trying to get this to work is driving me mad and x and o.php

          Comment


            #6
            I it is my site lavalair and it works fine, you just have to translate the language .. I hope to have you solved the problem
            PHP Code:
            /////////////////////////////////
            else if($action == "scramble")
            {
              
            $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
                
            addonline(getuid_sid($sid),"sta giocando a indovina la parola ($mmsg)","");
                  echo 
            "<head>";
                  echo 
            "<title>Word Scramble</title>";
                  echo 
            "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                  echo 
            "</head>";
                  echo 
            "<body>";
              echo 
            "<p align=\"center\">";
            $answer $_POST["answer"];
            if (empty(
            $_POST["answer"]))  {
            srand((float) microtime() * 10000000);
            $input = array(
            "dictionary"
            "recognize",
            "example",
            "entertainment",
            "experiment",
            "appreciation",
            "information",
            "pronunciation",
            "language",
            "government",
            "psychic",
            "blueberry",
            "selection",
            "automatic",
            "strawberry",
            "bakery",
            "shopping",
            "eggplant",
            "chicken",
            "organic ",
            "angel",
            "season",
            "market",
            "information",
            "complete",
            "sunset",
            "unique",
            "customer"
            );
            $rand_keys array_rand($input2);
            $word $input[$rand_keys[0]];
            $Sword str_shuffle($word);
            echo 
            "<p align=\"center\">$Sword</p>
                  <p align=\"center\">Nella 
                   casella di testo sotto, scrivere la parola corretta che Ã¨ criptato sopra..ps:ogni vincita 25 plus, ogni perdita 25 plus detratti</p>
                  <form method=\"POST\" action=\"games.php?action=scramble&amp;sid=
            $sid\">
                    <center><input type=\"text\" name=\"answer\" size=\"20\">
            <input type=\"hidden\" name=\"correct\" value=\"
            $word\">
            <input type=\"submit\" value=\"GO!\" name=\"B1\"></center>
                  </form>
            <p align=\"center\"><b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=
            $sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a></p>
            </body>"
            ;
            }
            else {
            $answer strtolower($answer);
            if(
            $answer == $correct){
            $result "Correct! <b>$answer</b>";
            $uid getuid_sid($sid);
            $ugpl mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"));
            $ugpl "25" $ugpl[0];
            mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");
            echo 
            "<p align=\"center\">$result<br/>Hai avuto 25 plus nel gioco.
            </p>
                  <p align=\"center\"><a href=\"games.php?action=scramble&amp;sid=
            $sid\">Prova un'altra parola?</a><br/>
            <b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=
            $sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a></p>
            </body>"
            ;}

            else { 
            $result "Spiacente! La risposta corretta Ã¨ stata sbagliata <b>$correct</b>.";
            $uid getuid_sid($sid);
            $ugpl mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"));
            $ugpl $ugpl[0] - "25";
            mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");
            echo 
            "<p align=\"center\">$result<br/>Sono stati detratti 25 plus.
            </p>
            <p align=\"center\"><a href=\"games.php?action=scramble&amp;sid=
            $sid\">Prova un'altra parola?</a><br/>
            <b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=
            $sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a></p>
            </body>"
            ;
            }
            }

            Comment


              #7
              this is the word scramble.php in games folder

              okay, this is all of the wordscramble.php in games folder, the problem is theres no words above box to unscramble and i get
              Warning: array_rand() [function.array-rand]: First argument has to be an array in /home/.........../public_html/............./games/wordscramble.php on line 72


              <?php
              define('WCS',true);
              include('../core/main.inc');
              header_type();
              cleardata();
              if(ipbanned(ip(),browser())){
              if(!shield(getuid_sid($sid))){
              echo head_tag("Ip Blocked!!!",0,0);
              echo ipbanned_msg();
              echo foot_tag();
              exit();
              }
              }
              if(!islogged($sid)){
              echo head_tag("Error!!!",0,0);
              echo session_expired();
              echo foot_tag();
              exit();
              }
              if(banned(getuid_sid($sid))){
              echo head_tag("Error!!!",1,getnick_sid($sid));
              echo banned_msg($sid);
              echo foot_tag();
              exit();
              }
              mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

              /////////////////////////WORD SCRAMBLE/////////////////////////

              addonline(getuid_sid($sid),"Playing Word Scramble","");
              echo head_tag(getnick_sid($sid)."@Word Scramble",1,getnick_sid($sid));
              $title="<b><i>Word Scramble</i></b>";

              $answer=$_POST["answer"];
              if(empty($_POST["answer"])){
              srand((float)microtime()*10000000);

              $input=mysql_fetch_array(mysql_query("SELECT word1, word2, word3, word4, word5, word6, word7, word8, word9, word10, word11, word12, word13, word14, word15, word16, word17, word18, word19, word20 FROM games WHERE category='wordscramble'"));

              /*
              $input=array(
              "dictionary",
              "recognize",
              "example",
              "entertainment",
              "experiment",
              "appreciation",
              "information",
              "pronunciation",
              "language",
              "government",
              "psychic",
              "blueberry",
              "selection",
              "automatic",
              "strawberry",
              "bakery",
              "shopping",
              "eggplant",
              "chicken",
              "organic ",
              "angel",
              "season",
              "market",
              "information",
              "complete",
              "sunset",
              "unique",
              "customer"
              );
              */
              $rand_keys=array_rand($input,2);
              $word=$input[$rand_keys[0]];
              $Sword=str_shuffle($word);
              $main="<p align=".align().">
              $Sword
              </p>
              <p align=".align().">
              In the text box below type the correct word that is scrambled above.</p>
              <div class=".align().">
              <form method=\"post\" action=\"./wordscramble.php?sid=$sid\">
              <input type=\"text\" name=\"answer\" size=\"20\"/>
              <input type=\"hidden\" name=\"correct\" value=\"$word\"/>
              <input type=\"submit\" value=\"GO!\" name=\"B1\"/>
              </form>
              </div>\n";
              }else{
              $answer=strtolower($answer);
              if($answer==$correct)
              {
              $result="Correct! <b>$answer</b>";
              $uid=getuid_sid($sid);
              $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
              $sqlfet=mysql_fetch_array($sqlfetch);
              $gplusnew=$sqlfet[0]+"25";
              $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
              $res=mysql_query($sql);
              $main="<p align=".align().">
              $result<br/>
              You Have Had 25 game Plusses Added For Winning.
              </p>
              <p align=".align().">
              <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
              </p>\n";
              }else{
              $result="Sorry! The Correct Answer Was <b>$correct</b>.";
              $uid=getuid_sid($sid);
              $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
              $sqlfet=mysql_fetch_array($sqlfetch);
              $gplusnew=$sqlfet[0]-"25";
              $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
              $res=mysql_query($sql);
              $main="<p align=".align().">
              $result<br/>
              You Have Had 25 game Plusses Deducted For Losing.
              </p>
              <p align=".align().">
              <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
              </p>\n";
              }
              }

              $main.="<p align=".align().">
              <a href=\"./games.php?sid=$sid\">Back</a>
              </p>\n";
              $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
              $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
              $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
              $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$mai n);
              echo foot_tag();
              exit;
              ?>










              can someone tell mw whats wrong with this or if theres something else i need to put and where to get it working please

              okay, this is all of the wordscramble.php in games folder, the problem is theres no words above box to unscramble and i get
              Warning: array_rand() [function.array-rand]: First argument has to be an array in /home/.........../public_html/............./games/wordscramble.php on line 72


              <?php
              define('WCS',true);
              include('../core/main.inc');
              header_type();
              cleardata();
              if(ipbanned(ip(),browser())){
              if(!shield(getuid_sid($sid))){
              echo head_tag("Ip Blocked!!!",0,0);
              echo ipbanned_msg();
              echo foot_tag();
              exit();
              }
              }
              if(!islogged($sid)){
              echo head_tag("Error!!!",0,0);
              echo session_expired();
              echo foot_tag();
              exit();
              }
              if(banned(getuid_sid($sid))){
              echo head_tag("Error!!!",1,getnick_sid($sid));
              echo banned_msg($sid);
              echo foot_tag();
              exit();
              }
              mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

              /////////////////////////WORD SCRAMBLE/////////////////////////

              addonline(getuid_sid($sid),"Playing Word Scramble","");
              echo head_tag(getnick_sid($sid)."@Word Scramble",1,getnick_sid($sid));
              $title="<b><i>Word Scramble</i></b>";

              $answer=$_POST["answer"];
              if(empty($_POST["answer"])){
              srand((float)microtime()*10000000);

              $input=mysql_fetch_array(mysql_query("SELECT word1, word2, word3, word4, word5, word6, word7, word8, word9, word10, word11, word12, word13, word14, word15, word16, word17, word18, word19, word20 FROM games WHERE category='wordscramble'"));

              /*
              $input=array(
              "dictionary",
              "recognize",
              "example",
              "entertainment",
              "experiment",
              "appreciation",
              "information",
              "pronunciation",
              "language",
              "government",
              "psychic",
              "blueberry",
              "selection",
              "automatic",
              "strawberry",
              "bakery",
              "shopping",
              "eggplant",
              "chicken",
              "organic ",
              "angel",
              "season",
              "market",
              "information",
              "complete",
              "sunset",
              "unique",
              "customer"
              );
              */
              $rand_keys=array_rand($input,2);
              $word=$input[$rand_keys[0]];
              $Sword=str_shuffle($word);
              $main="<p align=".align().">
              $Sword
              </p>
              <p align=".align().">
              In the text box below type the correct word that is scrambled above.</p>
              <div class=".align().">
              <form method=\"post\" action=\"./wordscramble.php?sid=$sid\">
              <input type=\"text\" name=\"answer\" size=\"20\"/>
              <input type=\"hidden\" name=\"correct\" value=\"$word\"/>
              <input type=\"submit\" value=\"GO!\" name=\"B1\"/>
              </form>
              </div>\n";
              }else{
              $answer=strtolower($answer);
              if($answer==$correct)
              {
              $result="Correct! <b>$answer</b>";
              $uid=getuid_sid($sid);
              $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
              $sqlfet=mysql_fetch_array($sqlfetch);
              $gplusnew=$sqlfet[0]+"25";
              $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
              $res=mysql_query($sql);
              $main="<p align=".align().">
              $result<br/>
              You Have Had 25 game Plusses Added For Winning.
              </p>
              <p align=".align().">
              <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
              </p>\n";
              }else{
              $result="Sorry! The Correct Answer Was <b>$correct</b>.";
              $uid=getuid_sid($sid);
              $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
              $sqlfet=mysql_fetch_array($sqlfetch);
              $gplusnew=$sqlfet[0]-"25";
              $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
              $res=mysql_query($sql);
              $main="<p align=".align().">
              $result<br/>
              You Have Had 25 game Plusses Deducted For Losing.
              </p>
              <p align=".align().">
              <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
              </p>\n";
              }
              }

              $main.="<p align=".align().">
              <a href=\"./games.php?sid=$sid\">Back</a>
              </p>\n";
              $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
              $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
              $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
              $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$mai n);
              echo foot_tag();
              exit;
              ?>



              can someone tell me what's wrong with this or if theres something else i need to put and where to get it working please
              Last edited by Kirsty; 28.02.11, 13:05. Reason: spelling mistake

              Comment


                #8
                take this out
                Code:
                $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
                and this from the next line down
                 ($mmsg)
                Wapchat4u


                Topsites4u

                Comment


                  #9
                  Originally posted by nclemale36 View Post
                  take this out
                  Code:
                  $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
                  and this from the next line down
                   ($mmsg)
                  hi dave this is whats on the wordscramble.php in games folder but it comes up with the error listed above and no words to unscramble


                  <?php
                  define('WCS',true);
                  include('../core/main.inc');
                  header_type();
                  cleardata();
                  if(ipbanned(ip(),browser())){
                  if(!shield(getuid_sid($sid))){
                  echo head_tag("Ip Blocked!!!",0,0);
                  echo ipbanned_msg();
                  echo foot_tag();
                  exit();
                  }
                  }
                  if(!islogged($sid)){
                  echo head_tag("Error!!!",0,0);
                  echo session_expired();
                  echo foot_tag();
                  exit();
                  }
                  if(banned(getuid_sid($sid))){
                  echo head_tag("Error!!!",1,getnick_sid($sid));
                  echo banned_msg($sid);
                  echo foot_tag();
                  exit();
                  }
                  mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

                  /////////////////////////WORD SCRAMBLE/////////////////////////

                  addonline(getuid_sid($sid),"Playing Word Scramble","");
                  echo head_tag(getnick_sid($sid)."@Word Scramble",1,getnick_sid($sid));
                  $title="<b><i>Word Scramble</i></b>";

                  $answer=$_POST["answer"];
                  if(empty($_POST["answer"])){
                  srand((float)microtime()*10000000);

                  $input=mysql_fetch_array(mysql_query("SELECT word1, word2, word3, word4, word5, word6, word7, word8, word9, word10, word11, word12, word13, word14, word15, word16, word17, word18, word19, word20 FROM games WHERE category='wordscramble'"));

                  /*
                  $input=array(
                  "dictionary",
                  "recognize",
                  "example",
                  "entertainment",
                  "experiment",
                  "appreciation",
                  "information",
                  "pronunciation",
                  "language",
                  "government",
                  "psychic",
                  "blueberry",
                  "selection",
                  "automatic",
                  "strawberry",
                  "bakery",
                  "shopping",
                  "eggplant",
                  "chicken",
                  "organic ",
                  "angel",
                  "season",
                  "market",
                  "information",
                  "complete",
                  "sunset",
                  "unique",
                  "customer"
                  );
                  */
                  $rand_keys=array_rand($input,2);
                  $word=$input[$rand_keys[0]];
                  $Sword=str_shuffle($word);
                  $main="<p align=".align().">
                  $Sword
                  </p>
                  <p align=".align().">
                  In the text box below type the correct word that is scrambled above.</p>
                  <div class=".align().">
                  <form method=\"post\" action=\"./wordscramble.php?sid=$sid\">
                  <input type=\"text\" name=\"answer\" size=\"20\"/>
                  <input type=\"hidden\" name=\"correct\" value=\"$word\"/>
                  <input type=\"submit\" value=\"GO!\" name=\"B1\"/>
                  </form>
                  </div>\n";
                  }else{
                  $answer=strtolower($answer);
                  if($answer==$correct)
                  {
                  $result="Correct! <b>$answer</b>";
                  $uid=getuid_sid($sid);
                  $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
                  $sqlfet=mysql_fetch_array($sqlfetch);
                  $gplusnew=$sqlfet[0]+"25";
                  $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
                  $res=mysql_query($sql);
                  $main="<p align=".align().">
                  $result<br/>
                  You Have Had 25 game Plusses Added For Winning.
                  </p>
                  <p align=".align().">
                  <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
                  </p>\n";
                  }else{
                  $result="Sorry! The Correct Answer Was <b>$correct</b>.";
                  $uid=getuid_sid($sid);
                  $sqlfetch=mysql_query("SELECT points FROM profiles WHERE uid='".$uid."'");
                  $sqlfet=mysql_fetch_array($sqlfetch);
                  $gplusnew=$sqlfet[0]-"25";
                  $sql="UPDATE profiles SET points='".$gplusnew."' WHERE uid='".$uid."'";
                  $res=mysql_query($sql);
                  $main="<p align=".align().">
                  $result<br/>
                  You Have Had 25 game Plusses Deducted For Losing.
                  </p>
                  <p align=".align().">
                  <a href=\"./wordscramble.php?sid=$sid\">Try Another Word?</a>
                  </p>\n";
                  }
                  }

                  $main.="<p align=".align().">
                  <a href=\"./games.php?sid=$sid\">Back</a>
                  </p>\n";
                  $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
                  $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
                  $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
                  $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
                  $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
                  echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$mai n);
                  echo foot_tag();
                  exit;
                  ?>

                  Comment


                    #10
                    am not surprised its not showing any words lol .

                    take
                    /*
                    and
                    */
                    out
                    Wapchat4u


                    Topsites4u

                    Comment

                    Working...
                    X