Gossamer Forum
Quote Reply
How to get config value?
I have a value in my setup/build options for build_sort_order_cool

How do i put that value into my global in a select statement? the following doesnt seem to work? is it becase of the apostrophes?

$search_db->select_options ('ORDER BY $CFG->{build_sort_order_cool}','LIMIT 10');
Quote Reply
Re: [kzap] How to get config value? In reply to
This should work;

$search_db->select_options ("ORDER BY $CFG->{build_sort_order_cool}",'LIMIT 10');

Your example won't work, cos the '' parses the variable literally (i.e it doesn't insert the appropriate value for that variable).

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!