Weird. I'm trying to get the following global to work with an upload field;
my ($ID,$Field) = @_;
my $file = $DB->table('Links')->file_info($Field, $ID);
return $file->File_URL();
}
Its called with;
When I do this, I get an error:
If I add the following code in (after the 'shift' call);
...I get;
Anyone got any ideas why I'm having this problem?
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!
Code:
sub { my ($ID,$Field) = @_;
my $file = $DB->table('Links')->file_info($Field, $ID);
return $file->File_URL();
}
Its called with;
Code:
<%if ImageURL($ID,Image)%>When I do this, I get an error:
Quote:
Can't call method "File_URL" on an undefined value at (eval 22) line 5.If I add the following code in (after the 'shift' call);
Code:
return "ID: $ID, Field: $Field";...I get;
Quote:
ID: 118, Field: ImageAnyone got any ideas why I'm having this problem?
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!