$type=$_POST['type'];
$province=$_POST['province'];
$text=$_POST['text'];
if($_POST["type"] == "0" and $_POST["province"]==""){
$sql = " SELECT * FROM tbl_position ";
}else{
$sql = "SELECT * from tbl_position WHERE (com_type LIKE '%$type%' or com_place like '%$province%' )";
}