Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/02/2007, 07:09
LadyArwen
 
Fecha de Ingreso: agosto-2006
Mensajes: 91
Antigüedad: 17 años, 9 meses
Puntos: 0
Re: eliminar de dos tablas condicionada

y si haces algo con empty:

if (!empty($imagen)){
mysql_query("DELETE from libros where obra='$id'") or die(mysql_error());
unlink($imagen);
}

no sé si voy bien...