Path : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/latestnews/settings/ |
Current < : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/latestnews/settings/b_news_val.php |
<?php include("connection.php"); session_start(); $name=$_SESSION['username']; $contents=mysql_real_escape_string($_POST['contents']); $query=mysql_query("INSERT INTO b_news VALUES(' ','$name','$contents')") or die(mysql_error()); if($query){ header("location:admin.php?success"); exit(0); } else { header("location:b_news_val.php?error"); exit(0); }