using BETWEEN in WHERE condition

前端 未结 6 1918
萌比男神i
萌比男神i 2020-12-09 04:26

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

6条回答
  •  醉酒成梦
    2020-12-09 04:51

    $this->db->where('accommodation BETWEEN '' . $sdate . '' AND '' . $edate . ''');

    this is my solution

提交回复
热议问题