<?
include("include/function.php"); //ติดต่อฐานข้อมูล
$query=mysql_query("SELECT * from dbname WHERE pro_id like '%".$pro_id."%' or type_id like '%".$type_id."%' or location_id like '%".$location_id."%' or beds_id like '%".$beds_id."%' or price like '%".$price."%'");
while($arr_product=mysql_fetch_array($query)){
echo $arr_product['name'].'<br>';
}
?>