Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <html>
- <title>Rully Studio | Notifikasi Data Tersimpan</title>
- <head>
- <link rel="stylesheet" href="style/bootstrap.min.css" />
- </head>
- <body>
- <div class="container" style="margin-top:8%">
- <div class="row">
- <div class="col-md-8 col-md-offset-2">
- <p>
- <center>
- <h2>Membuat Notifikasi Data Tersimpan</h2>
- Oleh : <a href="https://www.facebook.com.pendeta.mokong" target="_blank">Rully Studio</a>
- </center>
- </p>
- <div style="height:55px;">
- <?php
- if (isset($_SESSION['pesan']) && $_SESSION['pesan'] <> '') {
- echo '<div id="pesan" class="alert alert-success" style="display:none;">'.$_SESSION['pesan'].'</div>';
- }
- $_SESSION['pesan'] = '';
- ?>
- </div>
- <p>
- <a class="btn btn-primary" href="tambah.php">Tambah</a>
- </p>
- <table class="table table-bordered">
- <tr>
- <th>
- No
- </th>
- <th>
- Nama
- </th>
- <th>
- Jenis Kelamin
- </th>
- <th>
- Telepon
- </th>
- <th>
- Alamat
- </th>
- <th>
- Opsi
- </th>
- </tr>
- <?php
- include"koneksi.php";
- $no = 1;
- $data = mysqli_query ($koneksi, " select
- id_mahasiswa,
- nama,
- jenis_kelamin,
- telepon,
- alamat
- from
- mahasiswa
- order by id_mahasiswa DESC");
- while ($row = mysqli_fetch_array ($data))
- {
- ?>
- <tr>
- <td>
- <?php echo $no++; ?>
- </td>
- <td>
- <?php echo $row['nama']; ?>
- </td>
- <td>
- <?php echo $row['jenis_kelamin']; ?>
- </td>
- <td>
- <?php echo $row['telepon']; ?>
- </td>
- <td>
- <?php echo $row['alamat']; ?>
- </td>
- <td>
- <a href="hapus.php?id=<?php echo $row['id_mahasiswa']; ?>">Hapus</a>
- </td>
- </tr>
- <?php
- }
- ?>
- </table>
- </div>
- </div>
- <p>
- <center>Copyright @ 2018 by : <a href="https://www.facebook.com.pendeta.mokong" target="_blank">Rully Studio</a> All rights reserved.</center>
- </p>
- </div>
- <script src="style/jquery.min.js"></script>
- <script>
- $(document).ready(function(){setTimeout(function(){$("#pesan").fadeIn('slow');}, 500);});
- setTimeout(function(){$("#pesan").fadeOut('slow');}, 3000);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement