MINI
C:
/
siak
/
TOOL SIAK
/
tool9
/
restore1
/
view
/
Upload File:
files >> C:/siak/TOOL SIAK/tool9/restore1/view/cari_user.php
<?php include ("../lib/db/dbconfig.php"); include ("../config/fungsi_indotgl.php"); include '../view/modal.php'; $cari=$_POST['q']; ?> <div class="hasil_cari"> <h5>Hasil Pencarian <b><?php echo $cari; ?></b></h5> <table class='table '> <thead> <tr> <th>No</th> <th>User Id</th> <th>Nama User</th> <th>Nagari</th> <th>Kecamatan</th> <th>Telp</th> </tr> </thead> <tbody> <?php $no=0; $q = "SELECT * FROM user where nama_lgkp like '%".$cari."%' or user like '%".$cari."%' ORDER BY id_user desc LIMIT 0,5"; $blok = $conn->query($q); $no++; while ($r=$blok->fetch_assoc()) { extract($r); //print_r($status); echo "<tr> <td>$no</td> <td>$user</td> <td>$nama_lgkp</td> <td>$kelurahan</td> <td>$kecamatan</td> <td>$telp</td> <td> <div class='btn-group'> <button type='button' class='btn btn-primary dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='#' data-toggle='modal' data-target='#modalEdit$id_user'>Edit</a></li> <li><a href='#' data-toggle='modal' data-target='#modalDel$id_user'>Hapus</a></li> </ul> </div> </td> </tr>"; $no++; } ?> <tr> <td colspan="4"> <?php //$jmldata=mysql_num_rows(mysql_query("SELECT * FROM pegawai")); $q1 = "SELECT * FROM user where nama_lgkp like '%".$cari."%' or user like '%".$cari."%' LIMIT 0,5"; $blok1 = $conn->query($q1); $jmldata = $blok1->num_rows; ?> <td>Jumlah Record <?php echo "$jmldata"; ?></td> </tr> </tbody> </table> </div>
Copyright ©2021 || Defacer Indonesia