Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Logged in User

Quote Reply
Logged in User
   

Hi,

I am using the following sub in a template global to pull a field from another table. How do I get it to determine the username of the person who is logged in?

Is there a set variable that can be used in the template global sub?

sub {
my ($field_name) = $DB->table('table_name')->select({'Username' => ??Logged in user?? }, ['field_name'])->fetchrow_array();
return $field_name;
}


Thank you.

Simon.
Subject Author Views Date
Thread Logged in User jai 2191 Mar 5, 2002, 9:07 PM
Thread Re: [jai] Logged in User
jean 2127 Mar 6, 2002, 11:38 AM
Post Re: [jean] Logged in User
jai 2099 Mar 7, 2002, 10:28 PM