You are on page 1of 1

<?

php

mysql_connect ("localhost", "root", "");


mysql_select_db("blogass");

if (isset($_POST['edit'])) {

$id = $_POST['id'];
$udtitle = $_POST['udtitle'];
$udcontent = $_POST['udcontent'];

mysql_query("UPDATE blogEntry SET content = $udcontent, title = $udtitle WHERE


id = $id");
}

header( 'Location: index.php' ) ;

?>

You might also like