codeigniter - Returning null from model function -


i want select records database function returns null.

model

function pub_article() {     $where=array('public'=>'1');     $query=$this->db->get_where('article',$where);     if($query->num_rows() > 0)         return $query->result();     else         return false; } 

what wrong code?


Comments