Skip to main content
Inspiring
December 15, 2008
Question

adding up prices from a column

  • December 15, 2008
  • 1 reply
  • 208 views
I'm trying to get the total from all the prices in my cost column in a table. But I am not sure how to go about it.

I am getting 100 when I just use 50.00 in two records. If I change one to 150.00 it does not change and still shows 100.

This topic has been closed for replies.

1 reply

Participant
December 15, 2008
try putting the 2cost in different varibles then add them....it looks like your adding the same array index in your code ($row_jobs['job_cost'] + $row_jobs['job_cost']) that would explain why you keep getting the same value.

just use separate names then add them.