December 14, 2018
0
codeigniter count_all_results without reset query
If you want to count total data from table before get result then you can follow below codex.
$this->select('Name');
$TotalData = $this->db->count_all_results('users', false);
$this->limi(10, 2);
$Query = $this->db->get();