【发布时间】:2010-12-03 05:22:09
【问题描述】:
我正在尝试在我的第一个严肃的 CodeIgniter 应用程序中调试一些代码,但我似乎无法找到可以简单地获取我的 ActiveRecord 代码刚刚生成的原始 SQL 的位置。
$where = 'DAY(`datetime_start`) = '. date('d',$day) .' AND ';
$where .= 'MONTH(`datetime_start`) = '. date('m',$day) .'';
$this->db->from('events')->where($where);
$result = $this->db->get();
感谢您的帮助!
【问题讨论】:
标签: php codeigniter