• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Limit problem

#1
[eluser]Unknown[/eluser]
Code:
$this->db->limit(10,20);

Show only first 10 records from table !!!

#2
[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.

#3
[eluser]Unknown[/eluser]
Running only in this way:

Code:
$this->db->limit(20,10);


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.