Re: php/mysql simple math
| From: | Chris Hewitt | Date: | Tue, 16 Jul 2002 17:31:43 +0000 |
| Subject: | Re: php/mysql simple math | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107933@lists.php.net to get a copy of this message | ||
Adam Voigt wrote:
$query = mysql_query("SELECT SUM(cost) AS total FROM cart WHERE userid='$_SESSION[userid]';"); Yes, I'd missed that the OP mentioned mysql in the subject, thus there SUM.Chris