Hi,
Here you go:
Make a new global - called "count_links_with_type"
my $field = 'Type';
return $DB->table('Links')->count( { $field => $_[0] } ) || 0;
}
Be sure to edit the bit in red to the field name that holds the download type =)
Then, call with:
Shareware: <%count_links_with_type('Shareware')%>
..etc
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!
Here you go:
Make a new global - called "count_links_with_type"
Code:
sub { my $field = 'Type';
return $DB->table('Links')->count( { $field => $_[0] } ) || 0;
}
Be sure to edit the bit in red to the field name that holds the download type =)
Then, call with:
Code:
Freeware: <%count_links_with_type('Freeware')%> Shareware: <%count_links_with_type('Shareware')%>
..etc
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!