<?php include "../config/setup.php" ; ?>
    <select class="form-control" name="com_value" id="com_value">
        <option value="" >-- Select --</option>
<?php 

    $com_type = $_POST['com_type'];
    $pack_sql = "SELECT * FROM commission_master WHERE type = '$com_type' AND status = 1 " ;
    $pack_res = $config->query($pack_sql);
    while($pack = $pack_res->fetch_assoc()){
?>
    <option value="<?= $pack['value'] ?>"><?= $com_type == 'Amount' ? 'Rs. '.$pack['value'] : $pack['value'].' %' ?></option>
<?php } ?>
	</select>