Hi!
I've encountered a problem that I just can't solve...Here is what I am trying to do: (This is just an example, but I think it will get my idea across).
I want to select all of the record from my db that meet a certain criteria, like select all of my members that are from the United States (for example).
Then I want to select all of of the values in the 'Points' column where the criteria was met, and add all of these values together.
Problem is, PHP only takes the last record that shows up. I don't know how to add between rows...I'll provide another example to try to clarify:
User Points
john 13
jane 21
dave 7
I want to select those three records and be able to get the correct sum of 41.
Please tell me if this is possible, and if it is, please give me some guidance so I can figure this out...
Thank you so much for your time,
Barry