
21/04/2015, 11:13
|
| | Fecha de Ingreso: febrero-2015
Mensajes: 35
Antigüedad: 10 años Puntos: 0 | |
Respuesta: sentencia DELETE para aplicarlo en varias tablas el archivo borrar.php COMPLETO
<?php
$_selector=$_GET["id"];
include("conectar.php");
if(mysql_query("DELETE FROM cliente,ruta,venta,vendedor using cliente,ruta,venta,vendedor where cliente.id=ruta.id and ruta.id=venta.id and venta.id=vendedor.id"))
{
echo '<script type="text/javascript" >
alert("Registro Eliminado");
window.location="listadodepersona.php"; </script>';
}
?> |