ok ho risolto con le foto!! adesso ho un'altro problema, devo cancellare le foto e la miniatura dalla cartella che si chiama files ho usato questo codice ma non funziona qualcuno mi sa aiutare?

<?

if($_GET['act'] == "delete")
{ include 'config.php';
$id = (int)$_GET['id'];
$query = "SELECT * FROM images WHERE id = '$id' ";
$risultato = mysql_query($query);
if ($risultato)
{
$riga = mysql_fetch_array($risultato);
$path = stripslashes($riga['path']);
$nome = stripslashes($riga['nome']);
unlink($path . "files/". $nome ); //cancello l'immagine principale
unlink($path . "files/tb_" . $nome ); //cncello la sua miniatura
}


if($id > 0)
{ mysql_query("DELETE FROM images WHERE id=".$id); }
else
{ echo "Id errato"; }
}
//tutto l'altro


echo("

<center><span class=gensmall>Cancellazione avvenuta con successo.</span></center>");
echo ("

<center>TORNA INDIETRO</center>");
?>


Grazie









Grazie