SHARE
TWEET

edit_buku.php

nauvalp Oct 23rd, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include '../config/koneksi.php';
  3. ?>
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7.     <meta charset="UTF-8">
  8.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  10.     <title>Tambah Buku</title>
  11. </head>
  12. <body>
  13.     <?php
  14.     $edit = "select * from buku where kd_buku='$_GET[id]'";
  15.     $hasil_edit = mysqli_query($conn,$edit);
  16.     $data_edit = mysqli_fetch_array($hasil_edit);?>
  17.     <form action="modul/buku/proses_buku.php" method="post">
  18.         <table>
  19.             <tr>
  20.                 <td>Kode Buku</td><td>:</td>
  21.                 <td><input type="text" name="kd_buku" value="<?php echo "$data_edit[kd_buku]"?>"></td>
  22.             </tr>
  23.             <tr>
  24.                 <td>Judul</td><td>:</td>
  25.                 <td><input type="text" name="judul_buku" value="<?php echo "$data_edit[judul_buku]"?>"></td>
  26.             </tr>
  27.             <tr>
  28.                 <td>Pengarang</td><td>:</td>
  29.                 <td><input type="text" name="penerbit" value="<?php echo "$data_edit[penerbit]"?>"></td>
  30.             </tr>
  31.             <tr>
  32.                 <td>Tahun Terbit</td><td>:</td><td><input type="text" name="tahun_penerbit" value="<?php echo "$data_edit[tahun_penerbit]"?>"></td>
  33.             </tr>
  34.             <tr>
  35.                 <td></td><td></td>
  36.                 <td><input type="submit" value="Edit"></td>
  37.             </tr>
  38.         </table>
  39.     </form>
  40. </body>
  41. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top