GOOGLE
<?php session_start();
include("dbcon.php");
$userId = $_SESSION['user_id'];
$id = $_GET['id'];
if($id!=""){
$bookUpdate = mysql_query("UPDATE `book` SET `book_status`='returned' WHERE `book_id`='".$id."'");
$borowBook = mysql_query("DELETE FROM `borrowdetails` WHERE `member_id`='".$_SESSION['user_id']."' AND `book_id`='".$id."' AND `borrow_status`='Send Request'");
?><script>
alert('Book Cancel Successfully Please select another book');
window.location.href='books.php';
</script>
<?php
}
?>
Copyright © 1945 -