Ver Mensaje Individual
  #13 (permalink)  
Antiguo 21/12/2005, 11:28
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 21 años, 10 meses
Puntos: 5
Pues resumiendo un poco el tema, $row[foto] contiene el nombre correcto de archivo a eliminar e intento eliminarla asi:

$query = mysql_query("select * from $tabla where id='$id'");
$row = mysql_fetch_array($query);

if ($row[foto]!=""){
@unlink('../fotos/'.$row[$foto]);

}

Última edición por pereztroff; 21/12/2005 a las 12:01