Jump to content

[SOLVED] Adding up all the values found in one field


SirChick

Recommended Posts

Ok im trying to work out how to do something along the lines of this:

 

Theres a table with say:

 

item name / user id / quantity

 

now say theres like 7 of these rows in the database. What i want to do is firslty, count how many rows there are and then add up quantity of each of the 7 rows together to equal a total using the userid in a session... is that possible?

 

Archived

This topic is now archived and is 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.