Help adding variables from MySQL query
| From: | news.php.net | Date: | Fri, 28 Jun 2002 19:41:56 +0000 |
| Subject: | Help adding variables from MySQL query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104417@lists.php.net to get a copy of this message | ||
I'd like to add all values for $purchase_price that are returned, how do I
do this?
Here's what i have now.
<?php
$result = mysql_query("SELECT purchase_price FROM assets where
order_number='$order_number' ORDER BY $desc");
while(list($purchase_price) = mysql_fetch_row($result)) {
?>