Path : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/latestnews/settings/ |
Current < : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/latestnews/settings/edit_b_val.php |
<?php include("connection.php"); $id=$_GET['id']; session_start(); $name=$_SESSION['username']; $contents=mysql_real_escape_string($_POST['contents']); $query=mysql_query("UPDATE b_news SET contents='$contents' WHERE id='$id'") or die(mysql_error()); if($query){ header("location:view_b_news.php?updated"); exit(0); } else { header("location:edit_b_news.php?error"); exit(0); } ?>