<?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.="'Book Publication',";
$sqll1.="'delete',";
$sqll1.="'".$dte."',";
$sqll1.="'1')";
/* echo $sqll1; */
$UsQueryy1 =mysqli_query($conn,$sqll1);
$sql="delete from book";
$sql=$sql." where id='".$_GET['id']."'";
$UsQLk=mysqli_query($conn,$sql);
if($UsQLk){
header('location:'.$home_path.'/pages/master/viewbook.php?msg=success&id='.$_POST['idD']);
}else{
header('location:'.$home_path.'/pages/master/viewbook.php?msg=error&id='.$_POST['idD']);
}
?>
|