$result=unlink('$dir_to_upload/$row->Photo');
what do you get when you echo
echo htmlspecialchars('$dir_to_upload/$row->Photo');
and do you use the full file path? Images accept relative links but in my experience PHP's file handling functions want the full path.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php