HOME


Mini Shell 1.0
DIR:/home/drsekaran/www/admin/pages/master/action/
Upload File :
Current File : /home/drsekaran/www/admin/pages/master/action/editpublication.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.="'edit',";
$sqll1.="'".$dte."',";
$sqll1.="'1')";
/* echo $sqll1; */ 
$UsQueryy1 =mysqli_query($conn,$sqll1);


	$sqlBl="UPDATE publication SET ";
	$sqlBl=$sqlBl."pubtype='".$_POST['pubtype']."',";
	$sqlBl=$sqlBl."title='".$_POST['title']."',";
	$sqlBl=$sqlBl."description='".$_POST['description']."',";
	$sqlBl=$sqlBl."year='".$_POST['year']."',";
	$sqlBl=$sqlBl."author1='".$_POST['author1']."',";
	$sqlBl=$sqlBl."author2='".$_POST['author2']."',";
	$sqlBl=$sqlBl."author3='".$_POST['author3']."',";
	$sqlBl=$sqlBl."author4='".$_POST['author4']."',";
	$sqlBl=$sqlBl."author5='".$_POST['author5']."',";
	$sqlBl=$sqlBl."pubname='".$_POST['pubname']."',";
	$sqlBl=$sqlBl."pages='".$_POST['pages']."',";
	$sqlBl=$sqlBl."isbn='".$_POST['isbn']."',";
	$sqlBl=$sqlBl."dorder='".$_POST['dorder']."',";
	$sqlBl=$sqlBl."added_by='".$added_by."',";
	$sqlBl=$sqlBl."added_on='".$added_on."'";
	$sqlBl=$sqlBl." where id='".$_POST['idD']."'";
	$UsQuery=mysqli_query($conn,$sqlBl);


if($UsQuery){
	header('location:'.$home_path.'/pages/master/editpublication.php?msg=success&id='.$_POST['idD']);
}else{
	header('location:'.$home_path.'/pages/master/editpublication.php?msg=error&id='.$_POST['idD']);	
}

?>