just to run through the standard areas here maybe do something like this to see whats going on:
<?php
echo
"<a href=\"$PHP_SELF?".id=$myrowid]."image_name=".urlencode($myrow[image_name])."&delete=yes\">DELETE</a>";
echo $image_name . "<BR>";
if($deleted=="yes"){
$dirs="/files/catagory/images/";
echo $dirs . $image_name . "<BR>";
unlink($dirs.$image_name);
$sql = "DELETE FROM general WHERE id=$id";
$result = mysql_query($sql);
}
?>
do the resulting lines make sense? I.E. if you were to open up a dos window, navigate to /files/catagory/images/ would you see the image you want to delete? Is the name getting translated properly?