1$data = array(
2 'title' => $title,
3 'name' => $name,
4 'date' => $date
5);
6
7$this->db->where('id', $id);
8$this->db->update('mytable', $data);
9// Produces:
10//
11// UPDATE mytable
12// SET title = '{$title}', name = '{$name}', date = '{$date}'
13// WHERE id = $id
14
1public function update_row(){
2
3 $update_rows = array('field-name' => 'field-data',);
4 $this->db->where('id', 1 );
5 $this->db->update('table-name', $update_rows);
6
7 }