| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /wamp/www/import_lama/ |
Upload File : |
<h3> View Kode Barang Ganda</h3>
<div class="container">
<table id="dataTables" class="table table-striped table-bordered">
<thead>
<tr>
<th>No</th>
<th>Kode Master Barang</th>
<th>Jumlah Data</th>
</tr>
</thead>
<tbody>
<?php
include "koneksi.php";
$no = 1;
$res = ibase_query("SELECT KODE_MASTER_BARANG, COUNT(KODE_MASTER_BARANG) AS i
FROM MASTER_BARANG
GROUP BY KODE_MASTER_BARANG
HAVING COUNT(KODE_MASTER_BARANG) > 1
ORDER BY KODE_MASTER_BARANG");
while($row = ibase_fetch_assoc($res)){
echo '
<tr>
<td>'.$no.'</td>
<td>'.$row['KODE_MASTER_BARANG'].'</td>
<td>'.$row['I'].'</td>
</tr>
';
$no++;
}
?>
</tbody>
</table>
</div>
<script>
$(document).ready(function() {
$('#dataTables').DataTable();
} );
</script>