<?php
include("../db_connection.php"); 
?>
<div class="col-md-6 more">
	<input type="text"  name="desire_product_<?php echo $_POST['newlen']?>" class="form-control desprod">
</div>
<div class="col-md-6 more">
    <select name="desire_maincat_<?php echo $_POST['newlen']?>" class="form-control maincategory1">
        <option value="0" selected="selected"> Select Maincategory </option>
            <?php $sqlmaincat=mysql_query("select * from tbl_maincategory");
                  while($resmaincat=mysql_fetch_assoc($sqlmaincat))
                  {
                      echo"<option value='".$resmaincat['mcid']."'>".$resmaincat['name']."</option>";
                  }
            ?>
    </select>
<div class="nearcat"></div>
<div class="nearsubcat"></div></div>
