Re: pulling numbers from a column and getting a total

From: Date: Thu, 27 Jul 2006 10:30:28 +0000
Subject: Re: pulling numbers from a column and getting a total
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42263@lists.php.net to get a copy of this message
Dave W wrote: > Hi, I was just wondering on how I could get a whole column full of > integers and added them up and display that total? I currently use a for > loop to display the whole column in a table, but I wanted to add all those > numbers up. > > Thanks. > You could use the SUM function in your DB to do the work for you. Cheers -- David Robley Power corrupts; absolute power is even more fun. Today is Pungenday, the 62nd day of Confusion in the YOLD 3172.

« previous php.db (#42263) next »