Gossamer Forum
Home : Products : Gossamer Links : Discussions :

contional select for file upload global

Quote Reply
contional select for file upload global
  
recently i wish to have the globle to shows conditional images only

sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}


my $cond = GT::SQL::Condition->new( 'LinkOwner', '=', 'admin'); ######


How should i change the code to achieve the goal?
my $file = $DB->table('Links')->select ($cond)->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";

it seems i did something wrong.
could any senior here show me a sample?

any help will be appreciated.
Quote Reply
Re: [courierb] contional select for file upload global In reply to
Hi,

Sorry, not really sure what your asking for?

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!