[PHP-DB] Sum Columns

2002-01-25 Thread mike
Hello, I've been experimenting with adding decimal columns. From the mysql docs I got this SELECT sum(value) FROM pets; So I did this $result = mysql_query(SELECT sum(value) FROM pets,$db); $myrow = mysql_fetch_array($result); print $myrow[value]; I also tried

Re: [PHP-DB] Sum Columns

2002-01-25 Thread Paul DuBois
At 23:19 -0600 1/25/02, [EMAIL PROTECTED] wrote: Hello, I've been experimenting with adding decimal columns. From the mysql docs I got this SELECT sum(value) FROM pets; So I did this $result = mysql_query(SELECT sum(value) FROM pets,$db); $myrow =

Re: [PHP-DB] Sum Columns

2002-01-25 Thread Jason Wong
On Saturday 26 January 2002 13:19, [EMAIL PROTECTED] wrote: Hello, I've been experimenting with adding decimal columns. From the mysql docs I got this SELECT sum(value) FROM pets; So I did this $result = mysql_query(SELECT sum(value) FROM pets,$db); $myrow =