null check codeigniter code example Example: codeigniter query builder where not null $this->db->where('field is NOT NULL', NULL, FALSE);