I have this problema, i try this code:
PHP Code:
$img = $mImages->where('act_img>', 0)
->where('nom_img', $image)
->first();
And show error column act_img not found, the field exist in database, and work with this code:
PHP Code:
$builder = $this->db->table('images i');
$builder->where('i.act_img>', 0);
$builder->orderBy('i.pos_img', 'asc');
$query = $builder->get();
I use codeigniter 4.1.8, with xampp 8.1.2, php 8.1.2, os fedora 35 x86_64