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解決了我的問題 –