dropdown

parent 7575fa5d
...@@ -24,7 +24,16 @@ ...@@ -24,7 +24,16 @@
<input type="text" name="judul" placeholder="Judul Buku" required=" " ><br> <input type="text" name="judul" placeholder="Judul Buku" required=" " ><br>
<input type="text" name="pengarang" placeholder="Nama Pengarang" required=" " ><br> <input type="text" name="pengarang" placeholder="Nama Pengarang" required=" " ><br>
<input type="text" name="penerbit" placeholder="Nama Penerbit" required=" " ><br> <input type="text" name="penerbit" placeholder="Nama Penerbit" required=" " ><br>
<input type="text" name="kategori" placeholder="Kategori Buku" required=" " ><br> <select class="form-control" name="kategori">
<?php
$kategori = mysqli_query($koneksi, "SELECT * FROM t_kategori ORDER BY id_kategori");
while($pilih = mysqli_fetch_array($kategori)) {
?>
<option value="<?= $pilih['id_kategori'];?>"><i class="fa fa-arrow-right" aria-hidden="true"></i><?php echo $pilih['nama_kategori']; ?></option>
<?php
}
?>
</select><br>
<input type="text" name="tahun" placeholder="Tahun Terbit" required=" " ><br> <input type="text" name="tahun" placeholder="Tahun Terbit" required=" " ><br>
<input type="text" name="harga" placeholder="Harga per Eksemplar" required=" " ><br> <input type="text" name="harga" placeholder="Harga per Eksemplar" required=" " ><br>
<input type="text" name="jumlah" placeholder="Jumlah Tersedia" required=" " ><br> <input type="text" name="jumlah" placeholder="Jumlah Tersedia" required=" " ><br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment