yolanda/trunk/functions.pl
josch 3cae15be76 initial version
git-svn-id: http://yolanda.mister-muffin.de/svn@6 7eef14d0-6ed0-489d-bf55-20463b2d70db
2007-10-10 09:01:16 +00:00

12 lines
285 B
Perl

sub fill_tagcloud {
my $sth = $dbh->prepare(qq{select text, count from tagcloud });
$sth->execute();
while (my ($text, $count) = $sth->fetchrow_array())
{
push @{ $page->{tagcloud}->{tag} }, { text => [$text], count => [$count] };
}
$sth->finish();
$dbh->disconnect();
}
1;