Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [carfac] Count UNIQUE

Quote Reply
Re: [carfac] Count UNIQUE In reply to
Hi,

This should work;

my $total = $DB->table('Links')->count ( ['DISTINCT(Field_Name)'] );

(fuzzy was right, but just in a different context, but the above is my personal preference for doing this kinda thing <G>).

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!

Last edited by:

Andy: Aug 8, 2005, 1:20 AM
Subject Author Views Date
Thread Count UNIQUE carfac 1597 Aug 7, 2005, 10:29 PM
Post Re: [carfac] Count UNIQUE
fuzzy logic 1557 Aug 8, 2005, 12:36 AM
Thread Re: [carfac] Count UNIQUE
Andy 1564 Aug 8, 2005, 1:19 AM
Post Re: [Andy] Count UNIQUE
fuzzy logic 1549 Aug 8, 2005, 7:31 AM
Post Re: [Andy] Count UNIQUE
carfac 1549 Aug 8, 2005, 7:34 AM