Hi,
how can i add into this global conditions?
sub {
my ($total) = $DB->table('Users')->select(['COUNT(Logins)'])->fetchrow_array;
return $total;
}
for example i need only to count this, when Status eq 'Administrator' and Logins >= 3.
How can i easily add conditions into the upper global?
And: How can i make the table open? So that i can start the global including the variabel like this:
<%counter('Users')%>
Thanks in advance!
Coyu
how can i add into this global conditions?
Code:
sub {
my ($total) = $DB->table('Users')->select(['COUNT(Logins)'])->fetchrow_array;
return $total;
}
for example i need only to count this, when Status eq 'Administrator' and Logins >= 3.
How can i easily add conditions into the upper global?
And: How can i make the table open? So that i can start the global including the variabel like this:
<%counter('Users')%>
Thanks in advance!
Coyu