List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:February 8 2002 1:54am
Subject:Re: How to sum() with php query?
View as plain text  
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 with PHP.

SELECT SUM(some_numeric_column) FROM tbl_name

is one example of how it works.

>TIA
>
>Floyd


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread98904@stripped>
To unsubscribe, e-mail <mysql-unsubscribe-cyon=bestweb.net@stripped>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Thread
How to sum() with php query?Floyd Baker12 Feb
  • RE: How to sum() with php query?Intruder12 Feb
Re: How to sum() with php query?Floyd Baker12 Feb
Re: How to sum() with php query?Floyd Baker12 Feb
Re: How to sum() with php query?Floyd Baker12 Feb
Re: How to sum() with php query?Paul DuBois12 Feb
Re: How to sum() with php query?Paul DuBois12 Feb
Re: How to sum() with php query?Paul DuBois12 Feb
Re: How to sum() with php query?Floyd Baker12 Feb