Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include"koneksi.php";
- $id = $_GET['no'];
- $miyya = mysql_query("SELECT * FROM arsip WHERE id_arsip = '$id'");
- if (mysql_num_rows($miyya)==0) {
- echo "Data Tidak Ditemukan!";
- }else{
- $kibo = mysql_fetch_array($miyya);
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Edit Data Arsip</title>
- <style type="text/css">
- h2, form{
- text-align: center;
- }
- </style>
- </head>
- <body>
- <h2> EDIT DATA ARSIP </h2>
- <form action="edit-proses.php" method="POST">
- <label>Id Arsip</label>
- <input type="text" name="id_arsip" value="<?php echo $kibo['id_arsip']; ?>" style="margin-left: 30px; margin-bottom: 10px;" readonly/><br>
- <label>Id Kategori</label>
- <input type="text" name="id_kategori" value="<?php echo $kibo['id_kategori']; ?>" style="margin-left: 9px; margin-bottom: 10px;" required/><br>
- <label>Tanggal</label>
- <input type="text" name="tanggal" value="<?php echo $kibo['tanggal']; ?>" style="margin-left: 31px; margin-bottom: 10px;" required/><br>
- <label>Judul</label>
- <input type="text" name="judul" value="<?php echo $kibo['judul']; ?>" style="margin-left: 47px; margin-bottom: 10px;" required/><br>
- <label>Berkas</label>
- <input type="text" name="berkas" value="<?php echo $kibo['berkas']; ?>" style="margin-left: 37px; margin-bottom: 10px;" required/><br>
- <label>Deskripsi</label>
- <input type="text" name="deskripsi" value="<?php echo $kibo['deskripsi']; ?>" style="margin-left: 20px; margin-bottom: 10px;" required/><br>
- <label>Keterangan</label>
- <input type="text" name="keterangan" placeholder="Username" value="<?php echo $kibo['keterangan']; ?>" style="margin-left: 9px; margin-bottom: 10px;" required/><br>
- <?php
- }
- ?>
- <button type="submit" name="ubah"> Ubah </button>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment