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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to