<?
if($_GET["txtKeyword"] != "")
{
$objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
$objDB = mysql_select_db("herb");
// Search By Name or Email
$strSQL = "SELECT * FROM data_herb WHERE (Herb_Name LIKE '%".$_GET["txtKeyword"]."%' or Herb_Properties
LIKE '%".$_GET["txtKeyword"]."%' or Herb_NameSci LIKE '%".$_GET["txtKeyword"]."%'
or Herb_NameFamily LIKE '%".$_GET["txtKeyword"]."%'
or Herb_Botany LIKE '%".$_GET["txtKeyword"]."%')";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$num_rows = mysql_num_rows($str_SQL);
if($num_rows == "")
{
echo "<sctipt> alert("Not Found Data!");</sript>";
}
?>