I\'d like the following function to select hotels with an accomodation between a certain $minvalue and $maxvalue. What would be the best way to do
$minvalue
$maxvalue
In Codeigniter This is simple Way to check between two date records ...
$start_date='2016-01-01'; $end_date='2016-01-31'; $this->db->where('date BETWEEN "'. date('Y-m-d', strtotime($start_date)). '" and "'. date('Y-m-d', strtotime($end_date)).'"');