Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- while($row_glku = mysql_fetch_assoc($glku)){
- if($row_glku['posting']=='TOTAL') {
- $total_berjalan_debet=$total_berjalan_debet+$row_glku['debet'];
- $total_berjalan_credit=$total_berjalan_credit+$row_glku['credit'];
- }
- echo "<tr>
- <td>".$row_glku['posting']."</td>
- <td>".($row_glku['posting']=='TOTAL'?'':$row_glku['descs'])."</td>
- <td>".$row_glku['aperiod']."</td>
- <td>".$row_glku['fyear']."</td>
- <td>".$row_glku['debet']."</td>
- <td>".$row_glku['credit']."</td>
- </tr>";
- }
- ?>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td><?php echo $total_berjalan_debet; ?></td>
- <td><?php echo $total_berjalan_credit; ?></td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement