RE: [PHP-WIN] My Dilema

2001-02-16 Thread Asendorf, John
entia potestas est > -Original Message- > From: Asendorf, John [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 16, 2001 9:18 AM > To: Ben Cairns; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] My Dilema > > > Which database are you using? It will make a di

RE: [PHP-WIN] My Dilema

2001-02-16 Thread Asendorf, John
Which database are you using? It will make a difference in how to do this. Generally, you'll want some type of FOR loop: ATTENTION: THIS IS NOT REAL CODE, JUST AN IDEA $num_results = count (results); for ( $i=1 ; $i <= $num_results ; $i++ ) { fetch_row ( results ); $grand_

Re: [PHP-WIN] My Dilema

2001-02-16 Thread Tom Mathews
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