Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($_SERVER['REQUEST_METHOD'] === 'GET')
- {
- if (isset($_GET['id']))
- {
- $servername = "localhost";
- $username = "root";
- $password = "";
- $conn = mysqli_connect($servername, $username, $password, "coche");
- $sql = "DELETE FROM `coche` WHERE `id`=" . $_GET["id"] . ";";
- mysqli_query($conn, $sql);
- header('Location: '. "/listarcoches.php");
- }
- }
- ?>
Add Comment
Please, Sign In to add comment