GOOGLE
<?php
include('dbcon.php');
date_default_timezone_set('Asia/Kolkata');
$start_date = date('Y-m-d');
$start_Time = date('H:s');
$end_date = date('Y-m-d');
$end_Time = '17:59';
$date_time = $start_date = date('Y-m-d H:i:s');
$id=$_POST['selector'];
$member_id = $_POST['member_id'];
$due_date = $_POST['due_date'];
if ($id == '' ){
//header("location: books.php");
?>
<script>
window.location.href='books.php';
</script>
<?php }else{
mysql_query("INSERT INTO `one_day_borrow`(`member_id`,`book_id`,`start_date`,`start_time`,`end_date`,`end_time`,`date_time`,`borrow_status`) values('".addslashes($member_id)."','".$id[$i]."','".$start_date."','".addslashes($start_Time)."','".$end_date."','".$end_Time."','".$date_time."','pending')");
$update = mysql_query("UPDATE `book` SET `book_status`='borrow',`one_day`=1 WHERE `book_id`='".$id[$i]."'");
//header("location: borrow.php");
?>
<script>
window.location.href='oneday_borrow.php';
</script>
<?php }
?>
Copyright © 1945 -