<?php
$link = mysqli_connect("localhost", "root", "", "dialer");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$query = " delete from dnc where phone='$_GET[name]'";
if ($result = mysqli_query($link, $query)) {
header("Location:./dnc.php");
/* free result set */
mysqli_free_result($result);
}
else {
printf("Error: %s\n", mysqli_error($link));
}
/* close connection */
mysqli_close($link);
?>
No hay comentarios:
Publicar un comentario