Created
October 28, 2021 01:38
-
-
Save ambiorixg12/6c63483c60d34e81d741ef65ee1b3fbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment