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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates