Hello,
I use a simple total hits global:
sub {
my ($total) = $DB->table('Links')->select(['SUM(Hits)'])->fetchrow_array;
return $total;
}
but it counts a link twice if it is in 2 categories. I there a way to have the same global but that would consider each link unique even if they are in several categories ?
Thanks in advance,
Brakkar
I use a simple total hits global:
Quote:
sub {
my ($total) = $DB->table('Links')->select(['SUM(Hits)'])->fetchrow_array;
return $total;
}
but it counts a link twice if it is in 2 categories. I there a way to have the same global but that would consider each link unique even if they are in several categories ?
Thanks in advance,
Brakkar