Question and answer is powered by AnsPress.io
I want to delete the image I using fun unlink() , but it answers me – Warning: unlink(): HTTP does not allow unlinking in C:xampp….
if you work with PHP so, you can try this code. follow the example:
<?php require_once("dbconnect.php"); $id=$_GET["id"]; $sql=mysqli_query($con,"SELECT `image_file` FROM `Table` WHERE `id`='$id'"); $row=mysqli_fetch_assoc($sql); unlink("uploads/images/" .$row['image_file']); ?>