Hi Andy, thanx!
It works very fine!
Two little things: How i use an "OR" between two conditions?
And: How i can summarize the globals (<%counter1%>) in a template?
This two alternatives doesnt works:
How can i summarize counter without using a global?
I am using for counting your global called counter1:
sub {
my $cond = new GT::SQL::Condition;
$cond->add('GS_Status','=','bezahlt');
my ($total) = $DB->table('Prod_GS')->select(['COUNT(Username)'],$cond)->fetchrow_array;
return $total;
}
Thanks in advance!
Coyu
It works very fine!
Two little things: How i use an "OR" between two conditions?
And: How i can summarize the globals (<%counter1%>) in a template?
This two alternatives doesnt works:
<%set new = $counter1 + $counter2 + $counter3 + $counter4%>
<%neu%>
or
<%$counter1 + $counter2 + $counter3 + $counter4%>
How can i summarize counter without using a global?
I am using for counting your global called counter1:
Code:
sub {
my $cond = new GT::SQL::Condition;
$cond->add('GS_Status','=','bezahlt');
my ($total) = $DB->table('Prod_GS')->select(['COUNT(Username)'],$cond)->fetchrow_array;
return $total;
}
Thanks in advance!
Coyu