Jump to content

count numbers in mysql row?


sourcecoder

Recommended Posts

Hi again ;)

 

I have a db that has coulm :

 

name,email, age

 

And now i want to calculate the age for my users..

 

just like row 2 + row 3+row4+row5 =

 

See what i mean?

 

joe| [email protected]|32

joe1| [email protected]|34

joe2| [email protected]|35

joe3| [email protected]|72

 

Age total for user = 144

 

/

Link to comment
https://forums.phpfreaks.com/topic/219097-count-numbers-in-mysql-row/
Share on other sites

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.