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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -