query builder in codeigniter 3 code example
Example 1: query builder codeigniter
$this->db->set('name', $name);
$this->db->set('title', $title);
$this->db->set('status', $status);
$this->db->insert('mytable');
Example 2: codeigniter 4 query builder select
$builder->select('title, content, date');
$query = $builder->get();
// Executes: SELECT title, content, date FROM mytable