Image filename from database should appear here
I insert a image from database to update form but it become like this
HTML FORM:
<form method="post" action="functionUpdate.php?id=<?php echo $id; ?>" enctype="multipart/form-data">
<div class="main-container">
<div class="gambar-pelajar">
<label for="studentImage">Gambar Pelajar</label>
<input type="file" name="studentImage" value="<?=$studentImage?>" id="studentImage">
</div>
</div>
</form>
Retrieve Image from DB:
<?php
include "config.php";
$id=$_GET['id'];
// AUTO FILL FIELD
$query = "SELECT * FROM student WHERE id='$id'";
$rslt = mysqli_query($conn,$query);
while ($row = mysqli_fetch_array($rslt)) {
$studentImage = $row['studentImage'];
}
?>