PHP e MySql: Apagar Dados

Fevereiro 9, 2008

 < ?php
$query = "DELETE FROM `tabela` WHERE id='$_GET[id]'";
$deleta = mysql_query($query) or print(mysql_error());
header("Location: pagina.php");
exit;
?>

Entry Filed under: MySql, PHP, Programação Web. Tags: , , , , , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Tópicos recentes

Comandos e Funções

mais acessados

Comentários

andre luiz em Validar formulário em Jav…
Rafaela Poiani em Validar formulário em Jav…
Vanessa em Validar formulário em Jav…