<!-- data table start -->
<div class="col-12 mt-4">
  <div class="card">
    <div class="card-body">
      <h1 class="header-title">Data Bukti Transaksi</h1>
      <br>
      <div class="data-tables">
        <table id="dataTable2" class="text-center">
          <thead class="bg-light text-capitalize">
            <tr>
              <th width="10%">No</th>
              <th width="20%">No. Transaksi</th>
              <th width="45%">Penerima</th>
              <th width="25%">Lihat Bukti Transaksi</th>
            </tr>
          </thead>
          <tbody>
            <?php
            $query = "SELECT * FROM transaksi ORDER BY no_transaksi ASC";
            $hasil = mysql_query($query);
  // echo mysql_num_rows($hasil);
            $nomor = 0;
            // $total = 0;
            while ($qtabel = mysql_fetch_array($hasil))
            { 
              $nomor++;
              $Kode = $qtabel['no_transaksi'];
              ?>
              <tr>
                <td align="center"><b><?php echo $nomor; ?></b></td>
                <td align="center"><?php echo $qtabel['no_transaksi']; ?></td>
                <td align="left"><?php echo $qtabel['userid']; ?></td>
                <td align="center"><a href="?page=Lihat-Transaksi&amp;Kode=<?php echo $Kode; ?>" target="_self" alt="Lihat Data" ><button type="button" class="btn btn-danger btn-xs">Lihat</button></a></td>
              </tr>
              <?php } ?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <!-- data table end -->
