<?php
require("../config.php");

if (isset($_POST['tipe'])) {
	$post_tipe = $conn->real_escape_string($_POST['tipe']);
	$cek_metode = $conn->query("SELECT * FROM metode_depo23 WHERE tipe = '$post_tipe' AND status = 'Aktif' ORDER BY id ASC");
	?>
	<option value="0">Pilih...</option>
	<option value="Payment Gateway">QRIS & VIRTUAL ACCOUNT (Otomatis)</option>
	<?php
	while ($data_metode = $cek_metode->fetch_assoc()) {
	?>
	<option value="<?php echo $data_metode['id'];?>"><?php echo $data_metode['provider'];?></option>
	<?php
	}
} else {
?>
<option value="0">Error.</option>
<?php
}