HOME


Mini Shell 1.0
DIR:/home/drsekaran/public_html/admin/pages/master/action/
Upload File :
Current File : /home/drsekaran/public_html/admin/pages/master/action/addpublication.php
<?php
ob_start();
session_start();
include("../../../config.php");
$dte=date('d/m/Y');
$dtdoc=date('Y-m-d');
$dteE=date('Y-m-d h:i:s');
$added_by=$_SESSION['user'];
$added_on=date('Y-m-d h:i:s');

$sqll1="insert into lastupdated(pagename,dtype,date,sts)";
$sqll1.=" values(";
$sqll1.="'Publication',";
$sqll1.="'add',";
$sqll1.="'".$dte."',";
$sqll1.="'1')";
/* echo $sqll1; */ 
$UsQueryy1 =mysqli_query($conn,$sqll1);


$sql="insert into publication(pubtype,title,description,year,author1,author2,author3,author4,author5,pubname,pages,isbn,dorder,added_by,added_on)";
	$sql.=" values(";
		$sql.="'".$_POST['pubtype']."',";
		
		$sql.="'".$_POST['title']."',";
		$sql.="'".$_POST['description']."',";
			$sql.="'".$_POST['year']."',";	
		$sql.="'".$_POST['author1']."',";
		$sql.="'".$_POST['author2']."',";
		$sql.="'".$_POST['author3']."',";
		$sql.="'".$_POST['author4']."',";
		$sql.="'".$_POST['author5']."',";
		$sql.="'".$_POST['pubname']."',";
		$sql.="'".$_POST['pages']."',";
		$sql.="'".$_POST['isbn']."',";
		$sql.="'".$_POST['dorder']."',";

	$sql.="'".$added_by."',";
	$sql.="'".$added_on."')";
//echo $sql; 
//die(); 
$UsQuery =mysqli_query($conn,$sql);

if($UsQuery){
	header('location:'.$home_path.'/pages/master/addpublication.php?msg=success&rcpt=');
}else{
	header('location:'.$home_path.'/pages/master/addpublication.php?msg=error');	
}

?>