Gossamer Forum
Home : Products : Gossamer Links : Discussions :

need a little help!!

Quote Reply
need a little help!!
I have 3 columns with prices info, what could i do to add up the 3 prices columns and use a 4th column to display the overall price of the 3? anybody know a solution for both in dynamic php and static links mode?
Quote Reply
Re: [chaos] need a little help!! In reply to
Do you want to have this saved in the database, or just displayed dynamically (i.e a global) ?

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!
Quote Reply
Re: [chaos] need a little help!! In reply to
my ($total, $cols);

$cols = $DB->table('Links')->select( ['Col1', 'Col2', 'Col3'] )->fetchrow_hashref;
$total += $cols->{$_} for (keys %$cols);

Last edited by:

Paul: May 4, 2002, 3:54 AM
Quote Reply
Re: [Andy.] need a little help!! In reply to
want the overall saved in the database!!!
Quote Reply
Re: [Paul] need a little help!! In reply to
So Paul, cna u plz assist me with how to saved the overall price to database?