Re: My Dilema

From: Date: Fri, 16 Feb 2001 14:18:50 +0000
Subject: Re: My Dilema
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5599@lists.php.net to get a copy of this message
SELECT SUM(Row_x) FROM Table_y; Tom Ben Cairns wrote: > I have a slight problem with this.... > > I am returning numerical values (i.e. 22.64, 2.54 etc. All with two Decimal > Places) from a database. I then want to add these together. > > But, I don't know how many rows there are, so I cant do: > $row+$row > There may only be one row, or there may be hundreds of rows. How can I add > all of the values together? > > Any help appreciated, cos. I'm stuck!.. > > -- Ben Cairns - Head Of Technical Operations > intasept.COM > Tel: 01332 365333 > Fax: 01332 346010 > E-Mail: BenC@intasept.com > Web: http://www.intasept.com > > "MAKING sense of > the INFORMATION > TECHNOLOGY age > @ WORK......" > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#5599) next »