dongliu8559 2018-07-14 11:20
浏览 487

如何在CodeIgniter中的db-> get_where()中使用“大于”和“小于”? [重复]

This question already has an answer here:

I'm having a problem about my project. Because my logic wants something like

$this->db->get_where('products', array('prod_price' > 100 ));

So. I wan't to know if there is a solution for this.

</div>
  • 写回答

1条回答

  • dongyuxin5353 2018-07-14 11:25
    关注

    The custom operator should be part of the column's string:

    $this->db->get_where('products', array('prod_price >', 100 ));
    # Here --------------------------------------------^
    
    评论

报告相同问题?

悬赏问题

  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制