
<?php
 require_once '../config/db.php';
 require_once '../config/database.class.php';
 require_once '../config/functions.php';
  $d = new database($db_config);
                  
	$catid=$_POST["catid"];
	$query = "SELECT * FROM subcategory where catid='$catid' "
?>
<option value="">Select SubCategory</option>
<?php
 $executeQuery = $d->selectQueryInArray($query);
                              
                              if($executeQuery )  {
                                // code...
                             
                            foreach ($executeQuery as $row)
                              {
                              
//while($row = mysqli_fetch_array($result)) {
?>
	<option value="<?php echo $row["subcategory"];?>"><?php echo $row["subcategory"];?></option>
<?php
}
}
?>