29/02/2012 7:44pm

PHP | Problem -


$AmenityIDs = array($AmenityID);

$AmenityIDs = implode(',', $AmenityIDs);

$filter = "Price < $maxprice AND Price > $minprice AND isActive = $isActive AND AmenityID IN ($AmenityIDs)";
Debug::show($filter);
$sort = 'Created ASC';
$join = 'LEFT JOIN `Apartment_Amenities` ON `ApartmentID` = `Apartment`.ID';
$limit = $_REQUEST['start'].",10";


return DataObject::get('Apartment', $filter, $sort, $join, $limit);
}


Post Comment