yolanda/trunk/functions.pl
josch ab07f7baad fixed require statement
git-svn-id: http://yolanda.mister-muffin.de/svn@8 7eef14d0-6ed0-489d-bf55-20463b2d70db
2007-10-10 09:44:51 +00:00

12 lines
318 B
Perl

require "/var/www/perl/include.pl";
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();
}