I got latitude value and longitude value in client ip address how to use between condition in phalcon.....i try to between condition in this coding
$conditions = array();
$conditions[] = 'status = '.$status;
$conditions[] = 'is_featured = '.$featured;
$conditions['lat_value BETWEEN ? AND ?']=array($min_lat,$max_lat);
$conditions['lng_value BETWEEN ? AND ?']=array($min_lon,$max_lon);
if (count($conditions)) {
$parameters['conditions'] = join(' AND ', $conditions);
}
how to use between condition???