$this->db->where('id', $this->tutorial_id); $this->db->set('tutorial_views', 'tutorial_views + 1', FALSE); $this->db->update('tutorials');
$array = array('name' => 'name + 1', 'title' => 'title + 1', 'status' => 'status + 1'); $this->db->set($array, FALSE); $this->db->insert('mytable');