2
I have the following idea:
$quantidade = $rowcount;
if $quantidade (?) '(?)') {
$valor = '1';
I need to set the $value by following:
de 100 a 499 = 1
de 500 a 999 = 2
de 1000 a 1499 = 3
de 1500 a 1999 = 4
de 2000 a 3999 = 5
acima de 4000 = quantidade*valor
Can someone help me?
This is essentially: https://answall.com/q/258024/101
– Maniero
ta missing one ( ai no if
– Wees Smith
Assuming this comes from a database, I would already bring calculated from there, via SQL.
– bfavaretto