我有以下内容:
/** Load necessary stuff **/
$this->load->helper('date');
$this->db->get('site_requests');
//echo mdate('%Y-%m-%d %H:%i:%s', now());
//die;
$this->db->where("(created_for <= " . "'2019-04-24 18:47:03'" . ")");
$this->db->get();
print_r($this->db->last_query());
但是我收到以下信息:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (`created_for` <= '2019-04-24 18:47:03')' at line 2
SELECT * WHERE (`created_for` <= '2019-04-24 18:47:03')
Filename: modules/sound/models/Sound_request_model.php
Line Number: 35
我究竟做错了什么?
qq_遁去的一_1
千巷猫影
Qyouu