Question
Multiply Prices in PHP (k)
I have the price of my items stored as a decimal (11,2). On
my page, I want
to be able to multiple those prices by a quantity. I have used this code:
<?php $a=$row_rsPrices['Price_Wholesale']; $b=10; $c=$a*$b; echo $c?>
Price_Wholesale in this example is 24.95 it is multiplied by $b which is 10
The result is 249.5
I want it to be a price, so my question is, how do I make it show the zero?
249.50
-Kirk
to be able to multiple those prices by a quantity. I have used this code:
<?php $a=$row_rsPrices['Price_Wholesale']; $b=10; $c=$a*$b; echo $c?>
Price_Wholesale in this example is 24.95 it is multiplied by $b which is 10
The result is 249.5
I want it to be a price, so my question is, how do I make it show the zero?
249.50
-Kirk
