MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/latestnews/settings/
File Upload :
Current < : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/latestnews/settings/blog_val.php

<?php
include("connection.php");
session_start();
$name=$_SESSION['username'];
$author=mysql_real_escape_string($_POST['author']);
$title=mysql_real_escape_string($_POST['title']);
$contents=mysql_real_escape_string($_POST['contents']);
$date=date('d-M-Y');
$query=mysql_query("INSERT INTO blogs VALUES(' ','$name','$title','$author','$contents','$date')") or die(mysql_error());
if($query){
?>	
<script>
alert('Successfull......!!!');
window.location.href="admin.php";
</script>
<?php }
else
{ ?>
<script>
alert('There is Some error While uploading');
window.location.href="admin.php";
</script>
<?php } ?>