GOOGLE

aku nok ndi : /home/astwardha/public_html/astwardha/astwardha.in/polylibrary/librarian/
File Up :
aku nok ndi : /home/astwardha/public_html/astwardha/astwardha.in/polylibrary/librarian/onedayreturnbook.php

<?php 
include('dbcon.php');
date_default_timezone_set('Asia/Kolkata');
    $dates= date('d-m-Y H:i');
$book_id = $_GET['id'];
$return = $_POST['return'];
$member_id = $_POST['member_id'];
if($return!=''){
// Note that $snacks will be an array.
foreach ($return as $s) {
	 $s;
  $borrowdetails = mysql_query("UPDATE `one_day_borrow` SET `borrow_status`='returned',`date_return`='".$dates."' WHERE `book_id`='".$s."'");
  $update = mysql_query("UPDATE `book` SET `book_status`='returned',`member_id`='' WHERE `book_id`='".$s."'");	
  if($_GET['flag']=='Teacher'){
   header('location:teacher_borrow.php'); 
  }else{
  	 header('location:oneday_borrow.php');
  }				
}
}else{
	if($_GET['flag']!='Teacher'){ ?>
	<script>
		alert("Please Select Book then click on return button");
		window.location.href='teacher_borrow.php?id=<?php echo $member_id; ?>';
	</script>
<?php }else{ ?>
	<script>
		alert("Please Select Book then click on return button");
		window.location.href='one_dayBorrow_List.php?id=<?php echo $member_id; ?>';
	</script>
	<?php } } ?>

Copyright © 1945 - 2024 GOOGLE