new Zend_Db_Expr("NULL")
new Zend_Db_Expr("now()")
Use Zend_Db_Expr("now()") instead of php date("Y.m.d H:i:s")function.
Example:
$data = array(
"created"=>new Zend_Db_Expr("now()"),
"enabled"=>0,
"deleted"=>0
);
$db->insert("table_name", $data);
No comments:
Post a Comment