db where clause in codeignitor 4 code example
Example 1: cideigniter orLike()
$this->db->like('title', 'match'); $this->db->or_like('body', $match);
// WHERE `title` LIKE '%match%' ESCAPE '!' OR `body` LIKE '%match%' ESCAPE '!'
Example 2: codeigniter 4 query builder select
$builder->select('title, content, date');
$query = $builder->get();
// Executes: SELECT title, content, date FROM mytable