Hi,
Try this (still call it get_google_pr_links):
# GooglePR
my $tbl = $DB->table('Links');
my @counts;
for (my $i = 0; $i <= 10; $i++) {
my $count = $tbl->count( { GooglePR => $_[0] } );
my $tmp;
$tmp->{PR} = $i;
$tmp->{Count} = $count;
push @counts, $tmp;
}
return { google_pr_counts => \@counts }
}
Then use this template code:
<%loop google_pr_counts%>
PR <%PR%> - <%Count%> links <br />
<%endloop%>
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Try this (still call it get_google_pr_links):
Code:
sub { # GooglePR
my $tbl = $DB->table('Links');
my @counts;
for (my $i = 0; $i <= 10; $i++) {
my $count = $tbl->count( { GooglePR => $_[0] } );
my $tmp;
$tmp->{PR} = $i;
$tmp->{Count} = $count;
push @counts, $tmp;
}
return { google_pr_counts => \@counts }
}
Then use this template code:
Code:
<%get_google_pr_links%> <%loop google_pr_counts%>
PR <%PR%> - <%Count%> links <br />
<%endloop%>
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!