Arithmetic operators produce no result with variables
I am trying to re-format the invoice/order email and am using a html table to contrl the layout.
When I try to get a line total, however, I cannot get the product of the qty and price variables.
My code at the moment:
<td width=15%><font face="Arial" size=2>({$products[prod_num].price} * {$products[prod_num].amount})</font></td>
This produces a result like:
(14.95 * 10) instead of the desired result 149.50
I have tried many variations on the PHP syntax but can't get anything to work. Enclosing this formula with <? ... ?> only yields a blank.
What am I missing?
Would greatly appreciate some help.
Thanks
Greg
__________________
Always prompt, no matter how long it takes..
Greg at Willow-world
|