![]() |
Limit 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: Limit problem (/showthread.php?tid=12421) |
Limit problem - El Forum - 10-18-2008 [eluser]Unknown[/eluser] Code: $this->db->limit(10,20); Show only first 10 records from table !!! Limit problem - El Forum - 10-18-2008 [eluser]elvix[/eluser] second argument is the offset. in your case, it should be 0. the manual's database / activerecord section details how all these functions work. Limit problem - El Forum - 10-18-2008 [eluser]Unknown[/eluser] Running only in this way: Code: $this->db->limit(20,10); |