variable type and $this->db->count_all_results(); - 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: variable type and $this->db->count_all_results(); (/showthread.php?tid=10100) |
variable type and $this->db->count_all_results(); - El Forum - 07-18-2008 [eluser]Eric Cope[/eluser] Maybe its just my C background, but shouldn't the function Code: $this->db->count_all_results(); variable type and $this->db->count_all_results(); - El Forum - 07-20-2008 [eluser]thinkigniter[/eluser] I use this feature, mostly, to display the results of a search but if I use it in a checking how many results and I need it as a Integer I use the php function intval(); Does this help? |