summing up data in a table help.!

Reply

Join Date: Jan 2009
Posts: 125
Reputation: blocker is an unknown quantity at this point 
Solved Threads: 0
blocker's Avatar
blocker blocker is offline Offline
Junior Poster

summing up data in a table help.!

 
0
  #1
Feb 17th, 2009
Good day.!

Im really sick of thinking every night and day on how to get the sum of all the value in such field. Assuming that ive already have a recorset which is filtered with a username "john", when john views his account, i want to sum up all the payments of john in a mysql field called "payment" which is filter by "yearlevel" and "section". After the filter i will display the sum in a table in a page.!

I really dont know the process of doing this.Pls help.!

God bless and peace on this mother earth.!

Thank you a million guys.!
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: summing up data in a table help.!

 
0
  #2
Feb 17th, 2009
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 125
Reputation: blocker is an unknown quantity at this point 
Solved Threads: 0
blocker's Avatar
blocker blocker is offline Offline
Junior Poster

Re: summing up data in a table help.!

 
0
  #3
Feb 17th, 2009
Originally Posted by kkeith29 View Post
http://www.tizag.com/mysqlTutorial/mysqlsum.php
thank you sir.ive found it very helpful.!thank you very very much everyone for all the help.!

By the way how can i get and edit a particular row value in mysql table.Example to get the diffirence value of the second row of the field "payment" minus the value of the first row of the field balance- then i will display it in the next row of the field balance again.Illustation below.

balance payment
4000
2000
2000
1000
1000

When the page load i want the starting balance to be deducted to all the payments of the user and display the remaining balance in the balance filed until it will be succesfully paid.

Pls help. I dont really know. Is it possible.?

Thank you very very very much.!

God bless and peace on earth.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC