Hi,
I want to get the latest link in a specifc category and tried calling the below global as:
<%fetch('1998')%> (where 1988 is the Category number I want the Top link from)
The global I use:
my $tags = shift;
my $table = $DB->table('Links');
$table->select_options ('ORDER BY Add_Time DESC', 'LIMIT 1');
return { article_loop => $table->select ( {CategoryID => $tags->{ID}, isValidated => "Yes"} )->fetchall_hashref };
}
But I get an error all the time...
Error: Can't use string ("1988") as a HASH ref while "strict refs" in use at (eval 32) line 3.
Any suggestions?
Klaus
http://www.ameinfo.com
I want to get the latest link in a specifc category and tried calling the below global as:
<%fetch('1998')%> (where 1988 is the Category number I want the Top link from)
The global I use:
Code:
sub { my $tags = shift;
my $table = $DB->table('Links');
$table->select_options ('ORDER BY Add_Time DESC', 'LIMIT 1');
return { article_loop => $table->select ( {CategoryID => $tags->{ID}, isValidated => "Yes"} )->fetchall_hashref };
}
But I get an error all the time...
Error: Can't use string ("1988") as a HASH ref while "strict refs" in use at (eval 32) line 3.
Any suggestions?
Klaus
http://www.ameinfo.com