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

Global serch terms not working

Quote Reply
Global serch terms not working
Hi,

I've updatet from 2 to 3.1 and it's all working but one global not. Here's the code:
Code:
top10_search:
sub {
# Displays last 10 search terms.
my $tags = shift;
my $table = $DB->table('SearchLogs');
$table->select_options ('ORDER BY HitCount DESC', 'LIMIT 10');
my $len = 22;
my $cond = GT::SQL::Condition->new('char_length(Term)', '<', $len);
$cond->add('Results','>',0);
my $sth = $table->select($cond);
my @output;
while (my $link = $sth->fetchrow_hashref) {
push (@output, $link);
}
return { top10_search_loop => \@output };
}

I've checked the field names seem to be correct.

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Subject Author Views Date
Thread Global serch terms not working kailew 4380 Aug 9, 2006, 3:31 PM
Thread Re: [kailew] Global serch terms not working
rascal 4248 Aug 9, 2006, 10:19 PM
Thread Re: [rascal] Global serch terms not working
kailew 4253 Aug 10, 2006, 3:19 AM
Thread Re: [kailew] Global serch terms not working
kailew 4243 Aug 10, 2006, 3:42 AM
Thread Re: [kailew] Global serch terms not working
eupos 4263 Aug 10, 2006, 4:19 AM
Thread Re: [eupos] Global serch terms not working
kailew 4243 Aug 10, 2006, 6:12 AM
Post Re: [kailew] Global serch terms not working
eupos 4245 Aug 10, 2006, 6:15 AM