This was asked before and a good answer was given but I cant remember the author so you'll have to search it.
The proposed solutions was how I would of done it - do it via SQL.
You can use the LIMIT keyword to show a subset of the data returned. For example:
SELECT * FROM mydata LIMIT 100,100;
Here, it tells it to show from the 100th record (1st number) and only 100 records (2nd).
I would approach it by making your "next" link append the next number for limit. Pseudo code may look something like:
my $blocksize = 100;
my $limit = 1 + param("limit"); #get the value from the query stri
my $sql = "SELECT * FROM data LIMIT $limit,$blocksize;"
Then your next and back buttons may have links like:
Add garnish as desired...
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.