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);
1function order_summary_insert()
2 $OrderLines=$this->input->post('orderlines');
3 $CustomerName=$this->input->post('customer');
4 $data = array(
5 'OrderLines'=>$OrderLines,
6 'CustomerName'=>$CustomerName
7 );
8
9 $this->db->insert('Customer_Orders',$data);
10}
1$this->db->like('title', 'match'); $this->db->or_like('body', $match);
2// WHERE `title` LIKE '%match%' ESCAPE '!' OR `body` LIKE '%match%' ESCAPE '!'
3