<?php
 
define("SERVERNAME","localhost");
 
define("USERNAME","root");
 
define("PASSWORD","password");
 
 
require("PhpSearchMysqlTables.inc.php");
 
 
$searchFromDatabase=array("bluemobile","mobiles");
 
$object=new PhpSearchMysqlTables($searchFromDatabase);  //Enter no parameter to search from the entire database
 
 
$keyword="nokia";
 
$matchWord=false;             //optional
 
$caseSenstive=false;        //optional
 
 
$result=$object->getSearchResults($keyword,$matchWord,$caseSenstive);
 
$count=count($result);
 
if($count==0){
 
    echo "Sorry $keyword was not found in any of the table";
 
}
 
else{
 
    echo $object->showResultAsHtml($result);
 
}
 
?>
 
 |