Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Simple data pull... how?

Quote Reply
Simple data pull... how?
Ok... I've got a simple search results listing like this in the environment:

results $VAR = [
{
'Username' => '000000',
'ReviewID' => '47',
'hidden' => '<input type=hidden name="1-ReviewID" value="47">',
'ClaimID' => '11',
'timestamp' => '%©'
}
];

I want to pull the value 47 (in this instance) and use it in a global template. How do I do that? Here is what I have now but it pulls up a NULL value.

sub {
#--------------------------------------------------------------------
my $tags = GT::Template->tags;
my $reviewid = $tags->{results}->{ReviewID};
return $reviewid;
}

Shouldn't this work? How is the correct way of doing it?
Subject Author Views Date
Thread Simple data pull... how? LanceWilson2 2208 May 31, 2003, 10:12 PM
Post Re: [LanceWilson2] Simple data pull... how?
LanceWilson2 2078 Jun 1, 2003, 4:57 PM