![]() |
Acrive Record: Getting the row total then setting limit clause - 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: Acrive Record: Getting the row total then setting limit clause (/showthread.php?tid=13022) |
Acrive Record: Getting the row total then setting limit clause - El Forum - 11-07-2008 [eluser]EEssam[/eluser] Hi, My search model looks like the following: Code: function get() But it's not working. I need to set the limit clause because my search results are paginated. Please help. Thanks. Acrive Record: Getting the row total then setting limit clause - El Forum - 11-07-2008 [eluser]philpalmieri[/eluser] Hey, Best way i have found is to just do two queries Code: function get() Acrive Record: Getting the row total then setting limit clause - El Forum - 11-07-2008 [eluser]philpalmieri[/eluser] where did your question go, now im not sure if my reply answered it or not, but it may help you figure it out Acrive Record: Getting the row total then setting limit clause - El Forum - 11-07-2008 [eluser]Armchair Samurai[/eluser] I'd do it this way. Code: function get($limit, $offset) |