Guest User

Untitled

a guest
Oct 21st, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include "koneksi.php";
  3. $id_apoteker = $_GET['id_apoteker'];
  4. $koneksi = mysqli_query($koneksi,"SELECT * FROM apoteker WHERE id_apoteker='$id_apoteker'");
  5. foreach ($koneksi as $data) {
  6. ?>
  7. <form action="update.php" method="post">
  8. <table>
  9. <tr>
  10. <td>Nama</td>
  11. <td>
  12. <input type="hidden" name="id_apoteker" value="<?php echo $data['id_apoteker'] ?>">
  13. <input type="text" name="nama_apoteker" value="<?php echo $data['nama_apoteker'] ?>">
  14. </td>
  15. </tr>
  16. <tr>
  17. <td>Jenis kelamin</td>
  18. <td><input type="text" name="jk_apoteker" value="<?php echo $data['jk_apoteker'] ?>"></td>
  19. </tr>
  20. <tr>
  21. <td>Alamat</td>
  22. <td><input type="text" name="alamat_apoteker" value="<?php echo $data['alamat_apoteker'] ?>"></td>
  23. </tr>
  24. <tr>
  25. <td>NO HP</td>
  26. <td><input type="text" name="no_hp_apoteker" value="<?php echo $data['no_hp_apoteker'] ?>"></td>
  27. </tr>
  28. <tr>
  29. <td></td>
  30. <td><input type="submit" value="Simpan"></td>
  31. </tr>
  32. </table>
  33. </form>
  34. <?php } ?>
RAW Paste Data