HOME


Mini Shell 1.0
DIR:/home/drsekaran/public_html/admin/pages/operation/action/
Upload File :
Current File : /home/drsekaran/public_html/admin/pages/operation/action/editfac.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');

	$sqlBl="UPDATE faculty SET ";
	$sqlBl=$sqlBl."fname='".$_POST['fname']."',";
	$sqlBl=$sqlBl."fdesig='".$_POST['fdesig']."',";
	$sqlBl=$sqlBl."fdivision='".$_POST['fdivision']."',";
	$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/editfaculty.php?msg=success&id='.$_POST['idD']);
}else{
	header('location:'.$home_path.'/pages/master/editfaculty.php?msg=error&id='.$_POST['idD']);	
}

?>