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!
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!