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_qk1.css">
- <title>Simpan Data Mahasiswa Quest Komputer</title>
- </head>
- <body>
- <section>
- <h1>Quest Komputer</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>
- <div>
- <?php
- $nim=$_POST['nimmhs'];
- $nama=$_POST['namamhs'];
- $alamat=$_POST['alamatmhs'];
- $telepon=$_POST['teleponmhs'];
- $jurusan=$_POST['jurusanmhs'];
- $koneksi=mysqli_connect("localhost","root","","dbkampus");
- $proses="INSERT INTO tbl_mahasiswa(nimmhs,namamhs,alamatmhs,teleponmhs,jurusanmhs)
- VALUES('$nim','$nama','$alamat','$telepon','$jurusan')";
- $hasil=mysqli_query($koneksi,$proses);
- echo "<font color=red size=5>Data Mahasiswa Berhasil Diisi</font>";
- ?>
- <br>
- <a href="tampil.php"><h3>Lihat Data Mahasiswa</h3></a>
- </div>
- </section>
- <footer>design by Quest Komputer</footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement