Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Help making global

Quote Reply
Re: [Andy] Help making global In reply to
Code:
return $table->select( ['payments_amount'] , { 'payments_amount' => $cond } )->fetchrow;
Passing the wanted columns in as an array reference works, but is the old way (like many years old) of doing things, just pass it in as arguments to select() (it just looks nicer). $cond is a GT::SQL::Condition object, so that's why it works.

Adrian
Subject Author Views Date
Thread Help making global rascal 5252 Dec 7, 2005, 9:24 AM
Thread Re: [rascal] Help making global
Hargreaves 5149 Dec 7, 2005, 9:47 AM
Thread Re: [Hargreaves] Help making global
Andy 5182 Dec 7, 2005, 10:02 AM
Thread Re: [Andy] Help making global
Hargreaves 5150 Dec 7, 2005, 10:07 AM
Post Re: [Hargreaves] Help making global
Andy 5134 Dec 7, 2005, 10:34 AM
Thread Re: [Andy] Help making global
brewt 5153 Dec 7, 2005, 12:45 PM
Post Re: [brewt] Help making global
rascal 5110 Dec 7, 2005, 9:58 PM
Thread Re: [brewt] Help making global
Andy 5139 Dec 7, 2005, 11:46 PM
Thread Re: [Andy] Help making global
brewt 5117 Dec 8, 2005, 12:25 AM
Post Re: [brewt] Help making global
Andy 5088 Dec 8, 2005, 12:30 AM