include '../config.php'; $correct_word=$_POST['correct_word']; $scrmable_word=$_POST['scrmable_word']; if (isset($_POST['c_my'])) { $c_my = trim($_POST['c_my']); } if ($c_my != '') { if ($correct_word == $c_my) { $my_ans = 'Correct'; } else { $my_ans = 'Wrong'; } $s_w2=mysql_query('SELECT * FROM ce_dict where word = "'.$correct_word.'" order by word limit 1',$link); $s_w12=mysql_fetch_array($s_w2); $word2 =$s_w12['word']; $meaning2 =$s_w12['meaning']; } $rNum = mt_rand(3,5); $s_w=mysql_query('SELECT * FROM ce_dict where length(word) = '.$rNum.' order by rand() limit 1',$link); $s_w1=mysql_fetch_array($s_w); $word =$s_w1['word']; $meaning =$s_w1['meaning']; $wordscr = strtolower(str_shuffle($word)); $swg_img_url = '../appimg/Scramble-Word-Game/'. $wordscr .'.jpg'; if (@getimagesize( $swg_img_url) == false ) { include '../appimg/imgswg11.php'; } $turl = "Scramble-Word-Game"; $HeadT = "Scramble Word Game"; $HeadD = "Rearrange the scrambled letters and form the correct word.". $word ; include '../header.php' ; ?>
if ($c_my != '') { ?>