using BETWEEN in WHERE condition

前端 未结 6 1914
萌比男神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:54

    I think we can write like this : $this->db->where('accommodation >=', minvalue); $this->db->where('accommodation <=', maxvalue);

    //without dollar($) sign It's work for me :)

提交回复
热议问题