|    
			
				07/02/2007, 07:09
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: agosto-2006 
						Mensajes: 91
					 Antigüedad: 19 años, 2 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...
     |