Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道为什么这种语法不起作用/导致服务器错误?
$this->db->having('post_timestamp >=' . strtotime('last saturday'));
如果您使用的是 MySQL,则查询可能会被转义。尝试这个:
$this->db->having('post_timestamp >='. strtotime('last saturday'), NULL, FALSE);