hello All,
here is my php code to delete a the mysql records where id =$id
this one record includes two files (mp3 file & jpg file) $row['path'] & $row['cover'].
I would be very thankful if anyone can help me to find way for delete these mp3 & jpg files also from the host along with the mysql record.
PHP Code:
require('db.php');
$id=$_REQUEST['id'];
$query = "DELETE FROM files WHERE id=$id";
$result = mysqli_query($con,$query) or die ( mysqli_error());
header("Location: index.php");
this one record includes two files (mp3 file & jpg file) $row['path'] & $row['cover'].
I would be very thankful if anyone can help me to find way for delete these mp3 & jpg files also from the host along with the mysql record.
Comment