Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset=utf-8">
- <link rel="stylesheet" type="text/css" href="css_jnm1.css">
- <title>Input Data PHP | www.javanetmedia.com</title>
- </head>
- <body>
- <section>
- <h1>Javanet Media</h1>
- <nav>
- <a href="tampil.php">Home</a>
- <a href="input.php">Input</a>
- <a href="tampil.php">Edit</a>
- <a href="tampil.php">Hapus</a>
- </nav>
- <h2>Data Mahasiswa</h2>
- <article>Data Mahasiswa Javanet Media</article>
- <div>
- <table style="width:100%">
- <tr>
- <th>No</th>
- <th>Kode</th>
- <th>Nama</th>
- <th>Alamat</th>
- <th>Telepon</th>
- <th>Jurusan</th>
- </tr>
- <?php
- include 'koneksi_db.php';
- $query = "SELECT * FROM tbl_mahasiswa ";
- $exe = mysql_query($query);
- $no = 1;
- while($row = mysql_fetch_assoc($exe)){
- $a = $row['nimmhs'];
- $b = $row['namamhs'];
- $c = $row['alamatmhs'];
- $d = $row['teleponmhs'];
- $e = $row['jurusanmhs'];
- echo "<tr><td>$no</td><td>$a</td><td>$b</td><td>$c</td><td>$d</td><td>$e</td></tr>";
- $no++;
- }
- ?>
- </table>
- </div>
- </section>
- <footer>design by JNM</footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement