0
严重性:注意 消息:未定义抵消:0 消息:试图让非对象的属性结果集的错误,如果没有记录由DB返回 - codiegniter
当记录在数据库中有发现没有错误,但是当查询返回没有结果时给出上述错误。
如何解决?
public function filessearch($id,$type){
$this->db->from('files');
$this->db->like('FTitle',$id);
$this->db->where('FBlock','UnBlock');
$this->db->where('FFullType',$type);
$this->db->limit(50);
$this->db->order_by('FID','DESC');
$this->db->group_by('FTitle');
$query=$this->db->get();
return $query->result();
}
谢谢bro解决了我的问题 –