Re: How to sum() with php query?

2002-02-12 Thread Floyd Baker
On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can someone give me a simple query syntax using

RE: How to sum() with php query?

2002-02-12 Thread Intruder
I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can someone give me a simple query syntax using php? $table=my_table; $field=some_field; $sql=SELECT sum(cost) AS cost FROM '$table'

Re: How to sum() with php query?

2002-02-11 Thread Floyd Baker
On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can someone give me a simple query syntax using

Re: How to sum() with php query?

2002-02-11 Thread Floyd Baker
On Thu, 7 Feb 2002 21:07:44 -0600, you wrote: At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should

Re: How to sum() with php query?

2002-02-11 Thread Floyd Baker
On Thu, 7 Feb 2002 22:09:18 -0600, you wrote: At 22:58 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 21:07:44 -0600, you wrote: At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts

Re: How to sum() with php query?

2002-02-11 Thread Paul DuBois
At 22:58 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 21:07:44 -0600, you wrote: At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see

Re: How to sum() with php query?

2002-02-07 Thread Paul DuBois
At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can someone give me a simple query syntax using php? The SQL SUM() function has nothing to do

Re: How to sum() with php query?

2002-02-07 Thread Floyd Baker
On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can someone give me a simple query syntax using

Re: How to sum() with php query?

2002-02-07 Thread Floyd Baker
On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can someone give me a simple query syntax using

Re: How to sum() with php query?

2002-02-07 Thread Paul DuBois
At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should have known. But I can't make it work. Can

Re: How to sum() with php query?

2002-02-07 Thread Floyd Baker
On Thu, 7 Feb 2002 21:07:44 -0600, you wrote: At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see there's a sum() function to do this. Should

Re: How to sum() with php query?

2002-02-07 Thread Paul DuBois
At 22:58 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 21:07:44 -0600, you wrote: At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts that was getting adding in a loop but I see

Re: How to sum() with php query?

2002-02-07 Thread Floyd Baker
On Thu, 7 Feb 2002 22:09:18 -0600, you wrote: At 22:58 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 21:07:44 -0600, you wrote: At 21:28 -0500 2/7/02, Floyd Baker wrote: On Thu, 7 Feb 2002 19:54:51 -0600, you wrote: At 19:53 -0500 2/7/02, Floyd Baker wrote: I have a column of amounts