Jezreel Portion of


"The field adjoining the city (2 Kings 9:10, 21, 36, 37). Here" Naboth was stoned to death (1 Kings 21:13).


See where $keyword occurs in the Bible...

"; ?>



0) { echo "

Definition of ".$keyword.":
"; for ($i=0; $i < $match_resultz; $i++) { $row=mysqli_fetch_array($query_results); $termurl = ($row ['term']); $termurl=preg_replace('/\s+/', '-',$termurl); echo "\"".($row['definition'])."\"
"; } // end of for } // end of if // end of Hitchcock // start of related matches echo "
"; $words = $keyword; $filters = ""; $words = explode(" ",$keyword); /* for($i=0;$words[$i] != "";$i++) { $filters .= "term like '%".$words[$i]."%'"; if($words[$i+1] != "") $filters .= " OR "; else break; } */ for($i=0;$words[$i] != "";$i++) { $length = strlen($words[$i]); //echo $length; if($length <= 3) continue; //echo "WORD: '".$words[$i]."' - end of word
"; //WHERE keywords REGEXP '[[:<:]]rid[[:>:]]' $filters .= "term REGEXP '[[:<:]]".$words[$i]."[[:>:]]'"; //$filters .= "term like '%".$words[$i]."%'"; if($words[$i+1] != "") $filters .= " OR "; else break; } $query="SELECT * FROM `dictionary` WHERE ".$filters; $result = mysqli_query($dbb,$query); if ($result) { $match_results=mysqli_num_rows($result); } else { $match_results = 0; } mysqli_close($dbb); if($match_results > 1) {echo "Related Bible Dictionary Terms:
";} for ($i = 0; $i < $match_results && $i < 20; $i++) // sets max results { $relatedterms = mysqli_fetch_array($result); if($keyword == $relatedterms["term"]) continue; $trent = $relatedterms["term"]; $trent = preg_replace('/\s+/', '-', $relatedterms); echo "",($relatedterms ['term'] ), "    "; } echo "
"; // end of related matches ?>