dithph

edit.php

May 15th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <?php
  2. include"koneksi.php";
  3.  
  4. $id = $_GET['no'];
  5. $miyya = mysql_query("SELECT * FROM arsip WHERE id_arsip = '$id'");
  6.  
  7. if (mysql_num_rows($miyya)==0) {
  8. echo "Data Tidak Ditemukan!";
  9. }else{
  10. $kibo = mysql_fetch_array($miyya);
  11.  
  12. ?>
  13. <!DOCTYPE html>
  14. <html>
  15. <head>
  16. <title>Edit Data Arsip</title>
  17. <style type="text/css">
  18. h2, form{
  19. text-align: center;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <h2> EDIT DATA ARSIP </h2>
  25.  
  26. <form action="edit-proses.php" method="POST">
  27. <label>Id Arsip</label>
  28. <input type="text" name="id_arsip" value="<?php echo $kibo['id_arsip']; ?>" style="margin-left: 30px; margin-bottom: 10px;" readonly/><br>
  29.  
  30. <label>Id Kategori</label>
  31. <input type="text" name="id_kategori" value="<?php echo $kibo['id_kategori']; ?>" style="margin-left: 9px; margin-bottom: 10px;" required/><br>
  32.  
  33. <label>Tanggal</label>
  34. <input type="text" name="tanggal" value="<?php echo $kibo['tanggal']; ?>" style="margin-left: 31px; margin-bottom: 10px;" required/><br>
  35.  
  36. <label>Judul</label>
  37. <input type="text" name="judul" value="<?php echo $kibo['judul']; ?>" style="margin-left: 47px; margin-bottom: 10px;" required/><br>
  38.  
  39. <label>Berkas</label>
  40. <input type="text" name="berkas" value="<?php echo $kibo['berkas']; ?>" style="margin-left: 37px; margin-bottom: 10px;" required/><br>
  41.  
  42. <label>Deskripsi</label>
  43. <input type="text" name="deskripsi" value="<?php echo $kibo['deskripsi']; ?>" style="margin-left: 20px; margin-bottom: 10px;" required/><br>
  44.  
  45. <label>Keterangan</label>
  46. <input type="text" name="keterangan" placeholder="Username" value="<?php echo $kibo['keterangan']; ?>" style="margin-left: 9px; margin-bottom: 10px;" required/><br>
  47. <?php
  48. }
  49. ?>
  50. <button type="submit" name="ubah"> Ubah </button>
  51. </form>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment