SyntaxFix
Write A Post
Hire A Developer
Questions
If you really want to count all rows. You can use this in model function:
$this->db->select('count(*)'); $query = $this->db->get('home'); $cnt = $query->row_array(); return $cnt['count(*)'];
It returns single value, that is row count