Your solution is quite general, but I don't like the idea of retrieving all the records every time I need to build next and previous links in a page; why don't you use the LIMIT/OFFSET clause available under PostgreSQL and MySQL?
Ciao, Valerio
In reply to Re: Solution - Re: Building an index for next/last in a photo album.
by valdez
in thread Building an index for next/last in a photo album.
by Seumas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |