Advertisement
irfanamir

header.php

Mar 23rd, 2021
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. <h1>Selamat datang di Aplikasi Pembayaran SPP</h1>
  2.             <hr />
  3. <!-- Logika kita, Jika Level Admin Maka Fitur apa saja yang dapat diakses -->
  4. <?php
  5. $panggil = mysqli_query($db, "SELECT * FROM petugas WHERE username='$username'");
  6. $hasil = mysqli_fetch_assoc($panggil);
  7.     if($hasil['level'] == "Administrator"){ ?>
  8.     <a href="siswa.php">Data Siswa</a> |
  9.     <a href="petugas.php">Data Petugas</a> |
  10.     <a href="kelas.php">Data Kelas</a> |
  11.     <a href="spp.php">Data SPP</a> |
  12.     <a href="transaksi.php">Transaksi</a> |
  13.     <a href="history.php">History Pembayaran</a> |
  14.     <a href="logout.php">LogOut</a>
  15. <?php
  16.     }else{ ?>
  17.     <a href="transaksi.php">Transaksi</a> |
  18.     <a href="history.php">History Pembayaran</a> |
  19.     <a href="logout.php">LogOut</a>
  20. <?php } ?>
  21.             <hr />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement