I have the following mysql query. Could you please tell me how to write the same query in Codeigniter\'s way ?
SELECT * FROM myTable WHERE trans_id
$data = $this->db->get_where('columnname',array('code' => 'B')); $this->db->where_in('columnname',$data); $this->db->where('code !=','B'); $query = $this->db->get(); return $query->result_array();