When I try to delete a file i get this error:
Warning: unlink(): No such file or directory in /home/.diddle/studiocommunity/studiocommunity.net/deleteart.php on line 17
here is the script deleteart.php:
<? include('header.php'); ?>
<tr>
<td height="400" colspan="3" class="color">
<?
session_start();
include ('dbconnect.php');
$conn = db_connect();
$db = @mysql_select_db ("studiocommunity", $conn)
or die ("Registration failure, try again.");
$sql = "SELECT * FROM user_art WHERE id=" . $_REQUEST["id"] . "";
$myFile = $row['path'];
unlink("$myFile");
$sql = "DELETE FROM user_art WHERE id=" . $_REQUEST["id"] . "";
if ($result = mysql_query($sql)) {
echo "Art Deleted!";
};
?>
what is wrong?