Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- // menyimpan data kedalam variabel
- $loker_buku=$_POST['loker_buku'];
- $rak=$_POST['no_rak'];
- $laci=$_POST['no_laci'];
- $boks=$_POST['no_boks'];
- $judulbuku=$_POST['judul_buku'];
- $pengarang=$_POST['nama_pengarang'];
- $tahun_terbit=$_POST['tahun_terbit'];
- $penerbit=$_POST['penerbit'];
- $penerima=$_POST['penerima'];
- $status=$_POST['status'];
- $ket=$_POST['keterangan'];
- // query SQL untuk insert data
- $sql="INSERT INTO buku VALUES (null,'".$loker_buku."','".$rak."','".$laci."','".$boks."','".$judulbuku."','".$pengarang."','".$tahun_terbit."','".$penerima."','".$penerbit."','".$status."','".$ket."')";
- mysqli_query($connect, $sql);
- // mengalihkan ke halaman index.php
- //header("location:index.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement