Espero puedan ayudarme e estado en busca de script y script y no puedo solucionar mi problema, el detalle que no me esta borrando el script
eliminar.php
Código PHP :
<?php if (empty($_GET['id'])==false):
$id = $_GET['id'];
//Conectamos con la base de datos
include('conexion.php');
$conexion = ConectarseBD();
$sql = "DELETE from users WHERE id=".$_GET['id'] ."";
$result = mysql_query($sql,$conexion); ?>
<script>
window.alert("El registro a sido borrado");
location.href="registrar.php";
</script>
<?php else: ?>
no hay variable en id
<?php endif; ?> 