kohjhjhصثقصثقصثقgdfgdg
Ele57885fddfgdfgfghgقفغفغفقhfg555434536
/
home
/
u402332945
/
domains
/
simmar.co.in
/
public_html
/
Admin-Panel
/
Upload FileeE
HOME
<?php include 'db.php'; $name2 = mysqli_real_escape_string($db, $_POST['name2']); $query ="SELECT * FROM p39 WHERE name2= '$name2'"; $results = $db->query($query); ?> <?php $i = 1; while($rs=$results->fetch_assoc()) { if ($i==1) { ?> <div id="reww<?php echo $rs["id"]; ?>"> <div style="width:500px;"> <div class="form-group"> <label>Rate</label> <input name="rate[]" type="text" class="form-control" value="<?php echo $rs["name6"]; ?>" id="rate" placeholder="Enter Rate"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Rate Description</label> <input name="ratedes[]" type="text" class="form-control" value="<?php echo $rs["name7"]; ?>" id="ratedes" placeholder="Enter Rate"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Value</label> <input name="price[]" type="text" class="form-control" value="<?php echo $rs["name4"]; ?>" id="price" placeholder="Enter Value"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Quanity</label> <input name="quantity[]" type="text" id="quantity1w" value="<?php echo $rs["name5"]; ?>" class="form-control"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Rate Unit</label> <input name="unit[]" type="text" class="form-control" value="<?php echo $rs["name3"]; ?>" id="unit" placeholder="Enter Unit"> </div> </div> <!--<div style="width:500px;"> <div class="form-group"> <label>Rate Product Image 1</label> <input name="file4[]" type="text" class="form-control" value="<//?php echo $rs["file1"]; ?>" id="file4" placeholder="File Upload"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Rate Product Image 2</label> <input name="file5[]" type="text" class="form-control" value="<//?php echo $rs["file2"]; ?>" id="file5" placeholder="File Upload"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Rate Product Image 3</label> <input name="file6[]" type="text" class="form-control" value="<//?php echo $rs["file3"]; ?>" id="file6" placeholder="File Upload"> </div> </div>--> <div style="width:500px;"> <div class="form-group"> <input type="button" value="Remove" class="btn form-control btn-danger" onclick="removeProductrow2(<?php echo $rs["id"]; ?>)"> </div> </div> </div> <br> <input name="tsldqnt[]" type="hidden" class="form-control" value="p39w" id="price" placeholder="Enter Value"> <input name="tnldqnt[]" type="hidden" class="form-control" value="<?php echo $rs["id"]; ?>" id="price" placeholder="Enter Value"> <?php } else { ?> <div id="reww<?php echo $rs["id"]; ?>"> <div style="width:500px;"> <div class="form-group"> <label>Rate</label> <input name="rate[]" type="text" class="form-control" value="<?php echo $rs["name6"]; ?>" id="rate" placeholder="Enter Rate"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Rate Description</label> <input name="ratedes[]" type="text" class="form-control" value="<?php echo $rs["name7"]; ?>" id="ratedes" placeholder="Enter Rate"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Value</label> <input name="price[]" type="text" class="form-control" value="<?php echo $rs["name4"]; ?>" id="price" placeholder="Enter Value"> </div> </div> <div style="width:500px;"> <div class="form-group"> <label>Quanity</label> <input name="quantity[]" type="text" id="quantity1w" value="<?php echo $rs["name5"]; ?>" class="form-control"> </div> </div> <input name="unit[]" type="hidden" class="form-control" value="<?php echo $rs["name3"]; ?>" id="unit" placeholder="Enter Unit"> <input name="file4[]" type="hidden" class="form-control" value="<?php echo $rs["file1"]; ?>" id="file4" placeholder="File Upload"> <input name="file5[]" type="hidden" class="form-control" value="<?php echo $rs["file2"]; ?>" id="file5" placeholder="File Upload"> <input name="file6[]" type="hidden" class="form-control" value="<?php echo $rs["file3"]; ?>" id="file6" placeholder="File Upload"> <div style="width:500px;"> <div class="form-group"> <input type="button" value="Remove" class="btn form-control btn-danger" onclick="removeProductrow2(<?php echo $rs["id"]; ?>)"> </div> </div> </div> <br> <input name="tsldqnt[]" type="hidden" class="form-control" value="p39w" id="price" placeholder="Enter Value"> <input name="tnldqnt[]" type="hidden" class="form-control" value="<?php echo $rs["id"]; ?>" id="price" placeholder="Enter Value"> <?php } $i++; } ?> <div style="width:500px;"> <div class="form-group"> <input type="button" value="Remove Sub Category-2" class="btn form-control btn-danger btn_removeww" id="otherType2"> </div> </div>