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.