Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

adding up prices from a column

Participant ,
Dec 15, 2008 Dec 15, 2008
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.

TOPICS
Server side applications
208
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 15, 2008 Dec 15, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines