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

Products: Gossamer Links: Development, Plugins and Globals: Re: [carfac] Global to return Random Category Name: Edit Log

Here is the list of edits for this post
Re: [carfac] Global to return Random Category Name
Out of interest, why did you turn strict "off" ?

Try:

Code:
sub {
my $count = int(rand($DB->table('Category')->count)) || 1;
return $DB->table('Category')->select( { ID => $count }, ['Full_Name'] )->fetchrow;
}

I moved the thread by order of Heckler :)

Last edited by:

Paul: Mar 21, 2002, 11:14 AM

Edit Log: