Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/04/2015, 11:13
lizkabbalah
 
Fecha de Ingreso: febrero-2015
Mensajes: 35
Antigüedad: 9 años, 2 meses
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>';
}
?>