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="Word Scramble";
$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="
$Sword
In the text box below type the correct word that is scrambled above.
<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> \n"; }else{ $answer=strtolower($answer); if($answer==$correct) { $result="Correct! **$answer**"; $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="$result
You Have Had 25 game Plusses Added For Winning.
<a href="./wordscramble.php?sid=$sid">Try Another Word?</a>
\n"; }else{ $result="Sorry! The Correct Answer Was $correct."; $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="
$result
You Have Had 25 game Plusses Deducted For Losing.
<a href="./wordscramble.php?sid=$sid">Try Another Word?</a>
\n"; } }
$main.="
<a href="./games.php?sid=$sid">Back</a>
\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,$main); 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 " "; $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 "
$Sword
In the text box below type the correct word that is scrambled above.
<form method=\"POST\" action=\"games.php?action=scramble&sid=$sid\">
<input type=\"text\" name=\"answer\" size=\"20\">
<input type="hidden" name="correct" value="$word"> <input type="submit" value="GO!" name="B1"> </form>
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>
</body>"; } else { $answer = strtolower($answer); if($answer == $correct){ $result = "Correct! **$answer**"; $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 " $result You Have Had 25 game Plusses Added For Winning.
<a href="games.php?action=scramble&sid=$sid">Try Another Word?</a>
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>
</body>";}else { $result = "Sorry! The Correct Answer Was $correct."; $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 " $result You Have Had 25 game Plusses Deducted For Losing.
<a href="games.php?action=scramble&sid=$sid">Try Another Word?</a>
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>
</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