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

Re: [katabd] List Of Users linked

Quote Reply
Re: [katabd] List Of Users linked In reply to
You should have a better look at the error messages you get

Unable to compile 'users_list': Global symbol "$db" requires explicit package name at (eval 696) line 6. Global symbol "$row" requires explicit package name at (eval 696) line 8. Global symbol "$row" requires explicit package name at (eval 696) line 8.

This simply tells you that you have to code use'ing strict. If you do the following changes, it will work:
Code:
sub {
# Displays all Users.
my $search_db= $DB->table('Users');
$search_db->select_options ('ORDER BY Username DESC');
my $sth = $search_db->select;
my $output;
while (my $user = $sth->fetchrow_hashref) {
$output .= qq~<a href="$CFG->{db_cgi_url}/page.cgi?page=user&user=$user->{Username}">$user->{Username}</a><br /> ~;
}
return $output;
}

Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: Aug 25, 2003, 11:08 PM
Subject Author Views Date
Thread List Of Users linked katabd 2415 Aug 24, 2003, 8:21 AM
Thread Re: [katabd] List Of Users linked
katabd 2344 Aug 24, 2003, 9:20 AM
Post Re: [katabd] List Of Users linked
pugdog 2306 Aug 25, 2003, 8:36 AM
Thread Re: [katabd] List Of Users linked
Andy 2349 Aug 25, 2003, 8:46 AM
Post Re: [Andy] List Of Users linked
pugdog 2302 Aug 25, 2003, 7:11 PM
Thread Re: [katabd] List Of Users linked
yogi 2288 Aug 25, 2003, 11:00 PM
Post Re: [yogi] List Of Users linked
katabd 2258 Sep 16, 2003, 9:16 PM