// error_reporting(0); if(!empty($_GET)) extract($_GET); if(!empty($_POST)) extract($_POST); if(!empty($_COOKIE)) extract($_COOKIE); $thispage = "/"; if(isset($lookup)) { $lookup = str_replace(":", "'", $lookup); $page_title = stripslashes($lookup)." definition"; $page_desc = "Current Word ".stripslashes($lookup); $page_key = stripslashes($lookup); } else { $page_title = "Word Definition"; $page_desc = "Word"; $page_key = "Word"; } if(isset($list)) { $page_title .= " ".$list; $page_desc .= " ".$list; $page_key .= " ".$list; } ?>
|
The fast way to find the meaning of words in the English dictionary. =$page_title?> Word-Definition.com The fast way to find definitions |
| '; echo ''.$d[1].''; echo ' | '; if($j>7) { $j=1; } } if($j<7){ while($j<7){ echo ''; $j++; } $j=0; } echo ' |
"; } if(strlen(trim($w[1])) > 0) { echo ""; } echo ""; break; } function link_words($string) { $nolink = array("is", "it", "but", "had", "been", "a", "of", "the", "was", "are", "and", "an", "so", "put", "see", "or", "one", "to", "by", "been", "with", "many", "for", "on", "in", "at", "as", "us", "be", "all", "not", "from", "made", "few"); $words = array_merge(range('A', 'Z'), range('a', 'z')); $words[] = "'"; $out = ""; for ($start = 0; $start < strlen($string); $start++) { $end = $start; if (!in_array($string{$start}, $words)) { $out .= $string{$start}; continue; } while (in_array($string{$end++}, $words)); $end--; $theWord = substr($string, $start, $end - $start); if (!@in_array(strtolower($theWord), $nolink)) $theWord = "$theWord"; $out .= $theWord; $start = $end - 1; } return $out; } ?>(".$w[1].") "; } echo link_words($w[2]); echo "
"; $p++; $current_word = $w[0]; } // GET NEXT WORD $sqln1 = "SELECT word FROM definitions WHERE word > '$current_word' ORDER BY word LIMIT 1"; $qryn1 = mysql_query($sqln1); $n = mysql_fetch_array($qryn1); if(mysql_num_rows($qryn1) == 1) { $next_word = ''.$n[0].' >'; } // GET PREVIOUS WORD $sqln1 = "SELECT word FROM definitions WHERE word < '$current_word' ORDER BY word DESC LIMIT 1"; $qryn1 = mysql_query($sqln1); $n = mysql_fetch_array($qryn1); if(mysql_num_rows($qryn1) == 1) { $previous_word = '< '.$n[0].''; } if(isset($previous_word)) { echo $previous_word." "; } if(isset($next_word)) { echo $next_word; } echo "
_ Scrabble Word Finder - - Online Thesaurus