Hi, i am trying to unlink an image but i cant seem to get the code right this is what i am doing....
<a href=\"$PHP_SELF?id=$myrow[id],image_name=$myrow[image_name]&delete=yes\">DELETE</a></td></tr>
if ($delete) {
unlink("images/image_name");
$sql = "DELETE FROM general WHERE id=$id";
$result = mysql_query($sql);
}
I am faily new to this stuff so i am not sure what i have done wrong here, i have tried unlink("images/$image_name"); but that says that i havent specified image_name, and the other says that no such file or directory exists....i would appreciate any help you can give me....thanks