【发布时间】:2013-10-30 02:51:09
【问题描述】:
我想获取一年前从现在开始的所有记录,但它无法正常工作。 在 CodeIgniter 中制作
这是我的问题,有什么问题吗? :
$currentDate = date("Y-m-d H:m:s");
$yeardate=date('Y-m-d H:m:s', strtotime('-1 year'));
$this->db->select('TimeStamp');
$this->db->where('Transaction', 'COMPLETED');
$this->db->where('TimeStamp>=',$yeardate);
$this->db->where('TimeStamp<=',$currentDate);
$query = $this->db->get('R_Logs');
$results = $query->result();
提前致谢
【问题讨论】:
-
定义
not working exactly.。
标签: php mysql codeigniter