Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get number of rows in codeigniter model

function data_model() {
    $this->db->select('*');
    $this->db->from('news_data');
    $id = $this->db->get()->num_rows();
    return $id;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #rows #codeigniter #model
ADD COMMENT
Topic
Name
2+1 =