<? include("connectdb.php");
$key = $_REQUEST["key"];
$sql="SELECT * FROM menu2 where name like '%$key%' or cause like '%$key%' or sym like '%$key%' or remedy like '%$key%'";
$rs=mysql_query($sql) or die(mysql_error());
<? include("connectdb.php");
$key = $_REQUEST["key"];
if($key == "")
{
echo "กรุณากรอก Key";
exit();
}
$sql="SELECT * FROM menu2 where name like '%$key%' or cause like '%$key%' or sym like '%$key%' or remedy like '%$key%'";
$rs=mysql_query($sql) or die(mysql_error());
$row=mysql_num_rows($rs);
if($row <= 0)
{
echo "ไม่มี Rows"
exit();
}
?>