endrasgusti

puyeng2

Oct 18th, 2017
72
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.   }
  19.      ?>
  20.  <tr>
  21.     <td>&nbsp;</td>
  22.     <td>&nbsp;</td>
  23.     <td>&nbsp;</td>
  24.     <td>&nbsp;</td>
  25.     <td><?php echo $total_berjalan_debet; ?></td>
  26.     <td><?php echo $total_berjalan_credit; ?></td>
  27.   </tr>
  28.  
  29. </table>
RAW Paste Data