
jwalker
Novice
May 31, 2011, 11:45 AM
Post #1 of 7
(4014 views)
|
|
Perl Database Paging
|
Can't Post
|
|
Hi, I'm trying to display database results on multiple pages. This is what I have so far: ###Set Page Results $rows_per_page=10; $total_pages=int( ($results/$rows_per_page) +0.99); $offset=(($page) * $rows_per_page); $limit=("LIMIT $offset, $rows_per_page"); foreach $i (1..$total_pages) { $uris{$i}="$pagel?key=value&key=value&page=$i"; } The foreach loop is for creating the links to each page. My question is what should the key value pairs be for the url? Any help would be much appreciated. Thanks.
|