Who to make an additon of fetched rows

From: Date: Tue, 16 Jan 2001 15:42:43 +0000
Subject: Who to make an additon of fetched rows
Groups: php.general 
Request: Send a blank email to php-general+get-34828@lists.php.net to get a copy of this message
How can i add all the fetched rows from a table? $result=mysql("$DBName","SELECT * FROM basket WHERE UserID='$UID'"); while ($row = mysql_fetch_array($result)) { $CID=$row[0]; $DMN=$row[1]; $DMB=$row[2]; $BID=$row[4]; do{ print "$DMB"; } Let's say i have to display the endprice from all the items from user $UID in the basket. Price from the items is in row $[2] or $DMB. How can i do that?

« previous php.general (#34828) next »