Codeigniter model with multiple update conditions using manual where statement
问题 I have this code in model that returns data $this->db->select('title, content, date'); $where = "name='Joe' AND status='boss'"; $this->db->where($where); $query = $this->db->get('mytable'); return $query->result(); I am using a manual where and i wanted to know whether the concept of manual where in updates and possibly in deletes is allowed. This code updates a table based on a single where condition $data = array( 'title' => $title, 'name' => $name, 'date' => $date ); $this->db->where('id',