R sum in a while loop
<p>I have loop and display this row</p>

<pre><code>&lt;? 
  if ($objResult["cashier_trans_Type"]=="out" || 
      $objResult["cashier_trans_Type"]=="debit to customer" ||
      $objResult["cashier_trans_Type"]=="debit") { 
      echo "0.00"; 
  } else {
      echo $Dofaa=number_format($objResult["cashier_trans_Value"],2); 
  } 
?&gt;
</code></pre>

<p>Now I would like to use a while loop in order to do the sum for the all columns: <code>$Dofaa</code></p>

<p>How can I do this by php?</p>

<p>thanks</p>
