King James Bible
King James Version (KJV)


"(Judg. 4:2) or nations, a city near Hazor in Galilee of the" "Gentiles, or Upper Galilee, in the north of Palestine. It was" here that Jabin's great army was marshalled before it went forth into the great battlefield of Esdraelon to encounter the army of "Israel, by which it was routed and put to flight (Judg. 4). It" "was situated "at the entrance of the pass to Esdraelon from the" "plain of Acre" at the base of Carmel. The name in the Hebrew is" "Harosheth ha Gojim, i.e., "the smithy of the nations;" probably," "as is supposed, so called because here Jabin's iron" "war-chariots, armed with scythes, were made. It is identified" with el-Harithiyeh. See where $keyword occurs in the Bible...
// start of matching to Hitchcock's Bible Dictionary
$query= "select * from hitchcockdictionary where term like '".$keyword."' ORDER BY term ASC";
$query_results=mysqli_query($dbb,$query);
$match_resultz=mysqli_num_rows($query_results);
if ($match_resultz > 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
?>