Carlos: > Before start writting it I decided to ask you guys first and who knows this > code is already written somewhere and I'll not have to reinvent the whell ;)
I might be missing the points here, but I think you are looking for a general solution to paginating *any* block or results, whether retrieved from MySQL or another source. I'm not sure there is a general solution.....The effect you are trying to achieve as part of the site's look'n'feel is personal rather than generic In theory you need three bits of code: One bit to actually display your data. That's up to you -- you now what and how you want. One bit to decide which subset of the results set you want to display. That can be pretty simple -- if you are displaying in blocks of 25, and the last you displayed was 125-149, then next is 150 onwards. One way to remember this is to have CGI parameters on the URLs for the continuation pages. One bit to format a next/prev set of hyperlinks (or list of page numbers). How you want to do that is pretty much up to you. REBOL.org has a single function to do most of that you can see how that behaves be doing a search that returns a *lot* of pages, eg http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-search.r and search for "the" Then click on one of the continuation pages, and then mess around with the start-at= and limit= parameters in the URL. How it responds should give you a feel for how you'd like your code to behave. Sunanda. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
