Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Array display on page??

Quote Reply
Array display on page??
In a database, I fetch a series of data from an unrelated SQL table (Patients) and I would like to use that data on my template page. I created a script that will go get the data like this:

sub PatientData {
# Lookup data in another database.
my $tags = GT::Template->tags;
my $id = $tags->{PatientID};
my $info = $tags->{home}->{sql}->table('Patients')->get ($id);
return $info;

I can call the script from the template but how do/can I reference the individual fields of this HASH in my template? (eg. to get the individual hash elements) Maybe I'm doing this all wrong? Unsure
Subject Author Views Date
Thread Array display on page?? LanceWilson2 2556 Feb 13, 2003, 11:04 PM
Thread Re: [LanceWilson2] Array display on page??
Paul 2457 Feb 14, 2003, 2:08 AM
Post Re: [Paul] Array display on page??
LanceWilson2 2447 Feb 14, 2003, 12:45 PM