Answers for "update query in sqli ci4"

SQL
0

update query in sqli ci4

$data = [
    'title' => $title,
    'name'  => $name,
    'date'  => $date,
];

$builder->where('id', $id);
$builder->update($data);
// Produces:
//
//  UPDATE mytable
//  SET title = '{$title}', name = '{$name}', date = '{$date}'
//  WHERE id = $id
Posted by: Guest on June-30-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language