hey,
I am stumped and I may be just missing a basic element of php or mysql, but I don't think so.
I am using a while loop to return a dollar amount which is the total(sum) of X other dollar amounts which are the results of a different while loop.
basically:
while (x) {
1 $1
2 $2
3 $3
while (y) {
subtotal: $6
}
}
while (x) {
2 $3
4 $5
while (y) {
subtotal: $8
}
}
// etc.
This is working fine.
My trouble is, how do I add the sums of the subtotals?
Hopefully that makes sense.
Thanks in advance.