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 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥20 jupyter保存图像功能的实现
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键