You can create a new global like "newest_user", and put the following content into it:
my $table = $DB->table('User');
$table->select_options("ORDER BY user_registered DESC", "LIMIT 1");
return $table->select( 'user_username' )->fetchrow;
}
Then place the <%newest_user%> tag into the template you want to display.
That's all. Good luck!
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Code:
sub { my $table = $DB->table('User');
$table->select_options("ORDER BY user_registered DESC", "LIMIT 1");
return $table->select( 'user_username' )->fetchrow;
}
Then place the <%newest_user%> tag into the template you want to display.
That's all. Good luck!
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...