<?php 
include "config/koneksi.php";

$tahun = $_POST['tahun'];
$jenisBayar = mysqli_query($conn,"SELECT * FROM jenis_bayar WHERE idTahunAjaran='$tahun' ORDER BY idJenisBayar ASC");
echo "<option value='all'>- Semua Jenis Bayar -</option>";
while($jb = mysql_fetch_array($jenisBayar)){
	echo "<option value='$jb[idJenisBayar]'>$jb[nmJenisBayar]</option>";
}
?>