Is there an easier way of writing this code?
To get it to do the same thing but less scripting?
// get value of id that is sent from address bar
$id=$_GET['id'];
// First query - unlink media file from subdirectory
$sql="SELECT * FROM $tbl_name WHERE id='$id'";
$result=mysql_query($sql);
$rows=mysql_fetch_array($result);
$target="../mp3/";
$file=$rows['file'];
$path="$target$file";
unlink($path);