Nov 7, 2003, 11:57 AM
Veteran / Moderator (18441 posts)
Nov 7, 2003, 11:57 AM
Post #2 of 3
Views: 1212
Try a simple global. Something like;
Code:
sub {
my $ID = shift;
my $sth = $DB->table('Links')->select( { ID => $ID } );
while (my $hit = $sth->fetchrow_hashref) {
return $hit->{Hits} + $hit->{YOURDETAILEdCOUNTFIELD};
}
}
Then call with;
<%global_name($ID)%>
You need to replace "YOURDETAILEdCOUNTFIELD" with the field name for the details hits.. I can't remember off the top of my head what its called
Hope that works :)
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!