Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] Users links global

Quote Reply
Re: [Paul] Users links global In reply to
I understand that the following global will return the links owned by a particular user.

sub {
my $output;
my $sth = $DB->table('Links')->select( { LinkOwner => $USER->{Username} } );
while (my $rec = $sth->fetchrow_hashref ) {
$output .= Links::SiteHTML::display('link', $rec );
}
return $output;
}

What I need, however, is a global that will simply/only return the total number of entries that the logged-in user has in the database. After weeks of attempts, I'd really appreciate it if someone could share a global to do this. Thanks so much in advance!
Subject Author Views Date
Thread Users links global katabd 8190 Mar 27, 2002, 4:28 PM
Thread Re: [katabd] Users links global
Paul 8024 Mar 28, 2002, 2:22 AM
Thread Re: [Paul] Users links global
katabd 8041 Jul 16, 2002, 5:09 AM
Thread Re: [katabd] Users links global
afinlr 7970 Jul 16, 2002, 5:35 AM
Post Re: [afinlr] Users links global
katabd 7980 Jul 16, 2002, 9:20 PM
Post Re: [katabd] Users links global
Paul 7996 Jul 16, 2002, 7:04 AM
Thread Re: [Paul] Users links global
kysa 7766 Mar 19, 2003, 3:03 PM
Thread Re: [kysa] Users links global
Paul 7751 Mar 19, 2003, 3:18 PM
Thread Re: [Paul] Users links global
kysa 7765 Mar 19, 2003, 6:32 PM
Post Re: [kysa] Users links global
Kay 7699 Apr 3, 2003, 4:42 AM
Thread Re: [Paul] Users links global
SSmeredith 7585 Jun 28, 2003, 9:34 PM
Thread Re: [SSmeredith] Users links global
Andy 7600 Jun 29, 2003, 6:03 AM
Thread Re: [Andy] Users links global
SSmeredith 7662 Jun 29, 2003, 6:35 AM
Thread Re: [SSmeredith] Users links global
Andy 7607 Jun 29, 2003, 8:19 AM
Thread Re: [Andy] Users links global
gundamz 7511 Dec 23, 2003, 5:27 AM
Thread Re: [gundamz] Users links global
gundamz 7479 Dec 31, 2003, 6:09 AM
Thread Re: [gundamz] Users links global
Aki 7488 Dec 31, 2003, 3:22 PM
Thread Re: [Aki] Users links global
gundamz 7474 Jan 7, 2004, 5:48 AM
Post Re: [gundamz] Users links global
webslicer 7446 Jan 7, 2004, 4:48 PM
Post Re: [gundamz] Users links global
pugdog 7457 Jan 7, 2004, 6:23 PM