Thursday, December 26, 2013

how to insert or update datetime to codeigniter

$data = array(
        'user_name' => $name ,
        'user_email' => $email,
        );
        $this->db->set('reg_date', 'NOW()', FALSE);
        $this->db->insert('user_res', $data);