endrasgusti

puyeng3

Oct 18th, 2017
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   <?php
  2.   while($row_glku = mysql_fetch_assoc($glku)){
  3.      
  4.       if($row_glku['posting']=='TOTAL') {
  5.       $total_berjalan_debet=$total_berjalan_debet+$row_glku['debet'];
  6.       $total_berjalan_credit=$total_berjalan_credit+$row_glku['credit'];
  7.      
  8.       }
  9.      
  10. echo "<tr>
  11.      <td>".$row_glku['posting']."</td>
  12.      <td>".($row_glku['posting']=='TOTAL'?'':$row_glku['descs'])."</td>
  13.       <td>".$row_glku['aperiod']."</td>
  14.       <td>".$row_glku['fyear']."</td>
  15.      <td>".$row_glku['debet']."</td>
  16.      <td>".$row_glku['credit']."</td>
  17.    </tr>
  18.     <tr>
  19.    <td>&nbsp;</td>
  20.    <td>&nbsp;</td>
  21.    <td>&nbsp;</td>
  22.    <td>&nbsp;</td>
  23.    <td>".$total_berjalan_debet."</td>
  24.    <td>".$total_berjalan_credit."</td>
  25.  </tr>";
  26.   }
  27.      ?>
  28.  
  29. </table>
RAW Paste Data