Skip navigation
Currently Being Moderated

cooking up a php echo

Apr 21, 2010 8:13 AM

Hi,

 

I have a mysql recordset that includes
'price_prd ' (item price - eg 14.95)
and
'amount_tax' (tax percentage to add - eg 17.5)

 

how can I show/ echo

 

<?php echo $row_rsPrd['price_prd']; ?> x 1.<?php echo $row_rsPrd[amount_tax]; ?>

 

price x 1.tax

 

...with only 2 deimal places?

 

much appreciated if anyone has the solution!

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points