
<?php
  include "../connection.php";
  $action_id = $_POST['action_id'];
  $sub_service = "SELECT * FROM forward_officers WHERE grievance_action_type = '$action_id'";
  $query = mysqli_query($con,$sub_service) or die("Query unsuccessfu");
?>
  <option value=""></option>
<?php
  while ($row = mysqli_fetch_assoc($query)) {
?>
  <option value="<?php echo $row['name']; ?>"><?php echo $row['name']; ?></option>

<?php
  }
?>