Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <?php
- $conexao = mysql_connect('localhost', 'root', '3630207')
- or die('Erro ao conectar com o bando de dados!');
- $db = mysql_select_db('informacoes')
- or die('Erro ao selecionar o banco de dados!');
- ?>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Exibir dados</title>
- </head>
- <body>
- <?php
- $usuario = $_POST['usuario'];
- $deleta = mysql_query("DELETE FROM informacoes WHERE usuario = '$usuario'");
- if($deleta == ''){
- echo 'Erro ao deletar usuário!';
- }else{
- echo 'Usuário deletado com sucesso!';
- }
- ?>
- <form action="index.php">
- <input type="submit" value="Voltar" name="Voltar" />
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement