<?php 
include("../db_connection.php");?>
	<div class="form-group">
    <label class="col-md-2 control-label" for="inputText">Sub Category</label>
    <div class="col-md-10">
    <select name="subcategory" class="form-control">
        <option value="">Please Select</option>
      <?php
       $sql=mysql_query("select * from tbl_subcategory where cid='".$_POST['val']."' and status='Enable' order by name asc");
		while($res=mysql_fetch_assoc($sql))
		{
        ?>
        
        <option  value="<?php echo $res['sid'];?>"><?php echo $res['name'];?></option>
        <?php  }?>
    </select>
    </div>
    </div>
	