Jump to content

[SOLVED] Get All Values In Column


majhate

Recommended Posts

Hello,

 

Lets say I have a table with the fields: ID, Color, Value

So..

 

ID - Color - Value

 

1 - Blue - 3

2 - Orange - 1

3 - Black - 4

4 - Red - 2

 

How would I get the total of the values in one varible.

so $total would = 10

I've been trying loops, but I cannot get this to work. Any sugguestions?

 

Thanks!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.