Count_all_result problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Count_all_result problem (/showthread.php?tid=54806) |
Count_all_result problem - El Forum - 09-26-2012 [eluser]rochellecanale[/eluser] Hey guys i used the count_all_result in my page to display selected data. But when i display my selected data it does not give a correct count. My data in the table is actually 12 items but when i display it in the page it gives 11 where's the other one? help me guys please. Count_all_result problem - El Forum - 09-26-2012 [eluser]Otemu[/eluser] Hi, Add this to your controller: Code: $this->output->enable_profiler(TRUE); If you test the query and it is still producing 12 then your need to post your code so we can try solve your issue. Count_all_result problem - El Forum - 09-26-2012 [eluser]rochellecanale[/eluser] i used another way i add 1 to the beginning of the count. Count_all_result problem - El Forum - 09-26-2012 [eluser]siptik[/eluser] but it's bad practice! find real problem, because you will have more problems where you will have other count of rows. Sorry my English is bad/ |