请问用insert('table',$array)的时候怎么用now()呢?
$array = array('article_id'=>$article_id,'content'=>$cm_content,'author'=>$cm_author,'last_date'=>now());
$this->db->insert('comments',$array);
return $this->db->affected_rows();
这样的都提示Fatal error: Call to undefined function now() 你确定有加载date helper吗
$this->load->helper('date'); 本帖最后由 heui 于 2011-3-28 01:02 编辑
你这个问题我也遇到了
http://www.heui.org/?p=264 直接用 PHP 的 date 函数不是一样吗。。。
不用追求什么都用 SQL 来做。。。。
页:
[1]