![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/02/2007, 07:09
|
| | Fecha de Ingreso: agosto-2006
Mensajes: 91
Antigüedad: 18 años, 5 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... |