Re: Column Totals

From: Date: Mon, 15 Nov 2004 18:11:40 +0000
Subject: Re: Column Totals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202058@lists.php.net to get a copy of this message
On Mon, 2004-11-15 at 11:01 -0700, Ben Miller wrote: > SELECT SUM(Revenue) FROM Sales WHERE Date='$Date' What happens when you do: SELECT Revenue FROM Sales WHERE Date='$Date'; Make sure you're getting values back first..and then you can try to sum them. -Robby -- /*************************************** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | robby@planetargon.com * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development * --- Now supporting PHP5 --- ****************************************/

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#202058) next »