【发布时间】:2012-09-02 15:06:52
【问题描述】:
有谁知道为什么这种语法不起作用/导致服务器错误?
$this->db->having('post_timestamp >=' . strtotime('last saturday'));
【问题讨论】:
标签: php codeigniter activerecord syntax
有谁知道为什么这种语法不起作用/导致服务器错误?
$this->db->having('post_timestamp >=' . strtotime('last saturday'));
【问题讨论】:
标签: php codeigniter activerecord syntax
如果您使用的是 MySQL,则查询可能会被转义。试试这个:
$this->db->having('post_timestamp >='. strtotime('last saturday'), NULL, FALSE);
【讨论】: