Okay, current page isn't working because there is not input. I guess the fetchrow_hashref is messing with the hits count.
Try changed the lines to this:
$sth = $tab->select( { isValidated => 'Yes', isNew => 'Yes' } );
my $hits = $tab->hits;
while (my $rec = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display('link2', $rec);
}
my $tags;
$tags->{'paging.url'} = $CFG->{db_cgi_url} . "/featured.cgi";
$tags->{'paging.num_hits'} = $hits;
$tags->{'paging.current_page'} = $pageNum;
- Jonathan
Try changed the lines to this:
Code:
$sth = $tab->select( { isValidated => 'Yes', isNew => 'Yes' } );
my $hits = $tab->hits;
while (my $rec = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display('link2', $rec);
}
my $tags;
$tags->{'paging.url'} = $CFG->{db_cgi_url} . "/featured.cgi";
$tags->{'paging.num_hits'} = $hits;
$tags->{'paging.current_page'} = $pageNum;
- Jonathan