PHP e MySql: Editar Dados

Fevereiro 9, 2008

< ?php
$sql = "UPDATE `tabela` SET `coluna`='$dado' WHERE `id`='$id'";
$atualiza = mysql_query( $sql ) 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…