Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <?php
- $host = "localhost";
- $user = "root";
- $pass = "";
- $banco = "restaurante";
- $conexao = mysqli_connect($host,$user,$pass,$banco) or die (mysqli_connect_error());
- $idprato = $_GET["id_prato"];
- $queryApagaPrato = "DELETE FROM pratos WHERE id_prato = '$idprato'";
- $apagarPrato = mysqli_query($conexao, $queryApagaPrato)or die("Algo deu errado ao excluir o prato. Tente novamente.");
- echo 'Prato excluido com sucesso!';
- ?>
- <br><br>
- <a href="pratos.php">Voltar</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement