we can set PHP variable as the value of input in HTML form like this
<input type="number" name="price" value="<?php echo $editprice;?>" >
but this doesn't work for input with type file. I try it this way
<?php
$sqlch15="SELECT image1 FROM pc where id=$idtoe";
$resultch15= mysqli_query($db, $sqlch15);
while ($row = mysqli_fetch_array($resultch15))
{
$editimg1 = "<img src='images/" .$row['image1']."'>";
}
?>
<input type="file" name="image1" value = "<?php echo $editimg1;?>">
but it doesn't work what is my mistake help me.