Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $no=1 ;
- $k=$sudahbayar->result();
- foreach ($bayargm->result() as $key=>$v):
- ?>
- <tr>
- <td>
- <?php echo $no++; ?>
- </td>
- <td>
- <?php echo $v->jenis; ?></td>
- <td class="sum">
- <?php echo $v->jumlah; ?></td>
- <td class="sum">
- <?php echo isset($k[$key]->sudahbayar)?$k[$key]->sudahbayar:''; ?></td>
- <td>
- <?php echo ($v->jumlah-(isset($k[$key]->sudahbayar)?$k[$key]->sudahbayar:0)); ?>
- </td>
- </tr>
- <?php
- endforeach;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement