![]() |
[SOLVED] How many rows does a query return? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: [SOLVED] How many rows does a query return? (/showthread.php?tid=26488) |
[SOLVED] How many rows does a query return? - El Forum - 01-14-2010 [eluser]alejandronanez[/eluser] Hey! I got a problem, I need to know how many rows does a query return in order to using that value in a FOR cycle on my view file. I got this code in my model file. Code: function obtener_todos(){ this in my Controller file: Code: function index(){ How do I use the number of rows returned on the query on my view file? I need help!!! Thaks a lot! [SOLVED] How many rows does a query return? - El Forum - 01-14-2010 [eluser]WebsiteDuck[/eluser] Model Code: function obtener_todos(){ Controller Code: function index(){ [SOLVED] How many rows does a query return? - El Forum - 01-14-2010 [eluser]alejandronanez[/eluser] Thanks!!! Thanks!!! Thanks!!! You saved my life ![]() It works 100% ![]() [SOLVED] How many rows does a query return? - El Forum - 01-14-2010 [eluser]Twisted1919[/eluser] Code: function obtener_todos() Code: $array = $this->model->obtener_todos(); |