Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="br">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="description" content="">
- <meta name="author" content="">
- <title>Excluir Marca</title>
- </head>
- <body>
- <?php
- require "Marca.class.php";
- if ($_POST) {
- $idMarca = $_POST["idMarca"];
- $marca = new marca();
- $marca->setIdMarca($idMarca);
- $resultado = $marca->excluir();
- if ($resultado ==0) {
- echo "Marca excluida com sucesso com o código: ". $marca->getIdMarca();
- echo "<br/>";
- }
- else {
- echo "Erro";
- }
- }
- else {
- echo "Dados não preenchidos";
- }
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment