Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <form action="" method="get">
  2. <label>Divisi/Bagian</label>
  3. <?php
  4. $dt = "SELECT distinct divisi FROM data_karyawan ORDER BY id";
  5. $hasil = mysql_query($dt);
  6. ?>
  7. <select type="submit" name="divisi" onchange="this.form.submit()" class="form-control">
  8. <option value="">Pilih Divisi/Bagian</option>
  9. <?php
  10. while ($tp=mysql_fetch_array($hasil)){
  11. ?>
  12. <option value="<?php echo $tp['divisi'];?>"><?php echo $tp['divisi'];?></option>
  13. <?php }?>
  14. </select>
  15. <p></p>
  16. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement