<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); 

 $i=$_REQUEST['id'];
?>

<select name="product_id[]" id="product_id" class="form-control" onChange="getProductDetails(this.value,<?php echo $i;?>)" required>

   <option value="">Select Product</option>
                                

    <?php
    $m->where("branch_id", $_SESSION['branch']);
    $WorkAssignList = $m->get("eduportal_product_config");
    foreach($WorkAssignList as $WorkAssignListVal)
    { ?>

       <option <?php if($Data[0]['product_id']==$WorkAssignListVal['product_id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['product_id']; ?>"><?php echo $WorkAssignListVal['product_name']; ?></option>

    <?php } ?>

    <input name="prod_ids[]" id="prod_ids<?php echo $i;?>" required="required" type="hidden" value="<?php echo $prodData[$i]['product_id']; ?>" />

</select>
  