<form method="post" name='AddData' id="insert_form1">  
  <div class="box-body">
    <div class="row">
      <div class="col-md-6">
        <div class="form-group">
          <label for="cuname">Parent
          </label>
          <select class="form-control" id="parent" name="parent" placeholder="Enter Parent">
            <option value="0">Parent</option>
            <?php
            include('config.php');
            $sql1 = "SELECT * FROM tbl_features";
            $result1 = mysqli_query($con, $sql1);
            if (mysqli_num_rows($result1) > 0) {
              while($row1 = mysqli_fetch_assoc($result1)) {
               ?>
               <option value="<?php echo $row1['id'];?>"><?php echo $row1['fnid'].' - '.$row1['fname'];?></option>
               <?php             
             }
           } 
           ?> 
         </select>
       </div>
       <?php 
       $sql2 = mysqli_query($con,"SELECT count(*) FROM tbl_features GROUP by fnid");             
       $i=0;
       while ($row1 = mysqli_fetch_array($sql2)) {
        $i++;
      }
      $j=$i+1;
      $k='f'.$j;
      ?>
      <div class="form-group">
        <label for="cuname">Function id
        </label>
        <input type="text" class="form-control" id="fnid" name="fnid" readonly value="<?php echo $k;?>"  placeholder="Enter Username">
      </div>
      <div class="form-group">
        <label for="ccontact">Function Name
        </label>
        <input type="text" class="form-control" id="fname" name="fname"  placeholder="Enter Function Name">
      </div>
      <div class="form-group">
        <label for="c_name">Discription
        </label>
        <input type="text" class="form-control" id="disc" name="disc"   placeholder="Enter Discription">
      </div>
    </div>
    <div class="col-md-6">
      <div class="form-group">
        <label for="cpass">File Name
        </label>
        <input type="text" class="form-control" id="file_name" name="file_name" value="#!" placeholder="File Name">
      </div>
      <div class="form-group">
        <input type="hidden" class="form-control" id="date" name="date"  placeholder="Enter Registred Date">
      </div>
      <div class="form-group">
        <label for="c_name">Icon
        </label>
        <input type="text" class="form-control" id="icon" name="icon"  placeholder="Enter icon">
      </div>
      <div class="form-group">
        <label for="c_name">Version
        </label>
        <input type="number" readonly class="form-control" id="version" name="version" value="1"  placeholder="Enter Version">
      </div>
      <div class="form-group">
        <label for="c_name">Prefrence
        </label>
        <input type="number" class="form-control" id="forder" name="forder"  placeholder="Enter Version">
      </div>
    </div>
  </div>
</div>
<input type="hidden" name="employee_id" id="employee_id" value="" />  
<input type="hidden" name="request_type" id="request_type" value="1" />  
<input type="button" name="insert" id="insert" value="Save" onclick="addnew_data()" class="btn btn-success" />
</form>