Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [assombracao] Real Image path please

Quote Reply
Re: [assombracao] Real Image path please In reply to
   
Hi, itīs almost there

sub {
my ($table, $image_col, $id) = @_;
my $file = $DB->table($table)->file_info($image_col, $id) or return "ID
$id does not have a file attached.";
return $file->File_RelativePath();
}

call it

<%global_name('Sample', 'picture', '10')%>

The only problem is that I canīt get the id to be automaticaly, I need to chance the '10' to the id of the record
Subject Author Views Date
Thread Real Image path please assombracao 4584 Aug 23, 2005, 10:23 AM
Thread Re: [assombracao] Real Image path please
assombracao 4427 Aug 24, 2005, 1:01 PM
Thread Re: [assombracao] Real Image path please
assombracao 4377 Aug 25, 2005, 4:11 AM
Post Re: [assombracao] Real Image path please
assombracao 4306 Aug 26, 2005, 12:01 PM