= $Grading) "; $Criteria = true; } if($Type != "") { $sql = $sql . "AND (P." . $Type . " = 'Y') "; $Criteria = true; } if($PriceTo != ""){ $sql = $sql . "AND (min_unit <= $PriceTo OR min_room <= $PriceTo) "; $Criteria = true; } //FINISH THE SQL $sql = $sql . " ORDER BY name "; // LIMIT 1,10 if($Criteria == false){ $sql = ""; } if($ISDEV){ //echo "" . $sql . "

"; } } ?> Street Map