HOME


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

$itm=$_GET['id'];


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


$sql="delete from publication";
$sql=$sql." where id='".$_GET['id']."'";
$UsQLk=mysqli_query($conn,$sql);

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




?>