update query in sqli ci4

Solutions on MaxInterview for update query in sqli ci4 by the best coders in the world

showing results for - "update query in sqli ci4"
Samantha
31 Feb 2016
1$data = [
2    'title' => $title,
3    'name'  => $name,
4    'date'  => $date,
5];
6
7$builder->where('id', $id);
8$builder->update($data);
9// Produces:
10//
11//  UPDATE mytable
12//  SET title = '{$title}', name = '{$name}', date = '{$date}'
13//  WHERE id = $id
14