in reply to Re: next prev record mysql table
in thread next prev record mysql table
It's probablybest that you keep track of the last element retrieved. For the first page:
select * from table order by something limit 10
and for next pages, do
select * from table where value > lastValueFromPriorQuery order by something limit 10
It's a pain in the ass when people add data or delete it and your pages go a little nutty. Your idea is great if your data doesn't change.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: next prev record mysql table
by bradcathey (Prior) on Dec 07, 2003 at 03:00 UTC |