Gossamer Forum
Home : Products : DBMan SQL : Development, Plugins and Globals :

Re: [hennagaijin] simple global making my head hurt...

Quote Reply
Re: [hennagaijin] simple global making my head hurt... In reply to
Hi,

I'm not sure about your coding but I think you could get the required result using -

sub {
my $tags = shift;
my $output;
my $loged_user = $tags->{Username};
my $table = $DB->table('events');
my $sth = $table->select (['col_name'],{Owner_userid => $loged_user });
while (my $row = $sth->fetchrow_hashref) {
($output .= "$row->{col_name}<br>");
}
return $output;
}

Replace col_name with your title column name.

Hope it works.

Simon.
Subject Author Views Date
Thread simple global making my head hurt... hennagaijin 5850 Nov 15, 2002, 2:18 PM
Thread Re: [hennagaijin] simple global making my head hurt...
jaspercram 5735 Nov 15, 2002, 3:35 PM
Post Re: [jaspercram] simple global making my head hurt...
hennagaijin 5738 Nov 15, 2002, 3:38 PM
Thread Re: [hennagaijin] simple global making my head hurt...
jai 5746 Nov 15, 2002, 5:31 PM
Thread Re: [jai] simple global making my head hurt...
hennagaijin 5703 Nov 16, 2002, 5:11 AM
Thread Re: [hennagaijin] simple global making my head hurt...
ArtistikDD 5433 Apr 10, 2003, 1:28 PM
Thread Re: [ArtistikDD] simple global making my head hurt...
jai 5389 Apr 10, 2003, 4:56 PM
Post Re: [jai] simple global making my head hurt...
ArtistikDD 5363 Apr 11, 2003, 9:46 AM