Sure: if $result holds your running total or sum, it can hardly hold the individual row's value at the same time. So you code would have to be something like:
$result = 0;
while (list($data) = mysql_fetch_row())
$result += $data;
echo "total = $result";
(I'm assuming your needs are a little more complicated than this, probably retrieving and displaying other columns too, otherwise you could just let the database produce the sum!)