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/racksubmit.php

<?php session_start(); include("dbcon.php");
date_default_timezone_set('Asia/Kolkata');
$date = date('d-m-Y H:i');
if(isset($_POST['rack'])){
	extract($_POST);
	 $update = mysql_query("INSERT INTO `rack_store`(`rack_no`,`subject`,`alloted_by`,`alloted_date_time`)VALUES('".$rack_no."','".$subject."','".$_SESSION['user_id']."','".$date."')");
	echo "<script>
	window.location.href='book_store.php'
	</script>";
}

if(isset($_POST['editrack'])){
	extract($_POST);
	 //$update = mysql_query("INSERT INTO `rack_store`(`rack_no`,`subject`,`alloted_by`,`alloted_date_time`)VALUES('".$rack_no."','".$subject."','".$_SESSION['user_id']."','".$date."')");
	 $update = mysql_query("UPDATE `rack_store` SET `rack_no`='".$rack_no."',`subject`='".$subject."' WHERE `id`='".$_GET['id']."'");
	echo "<script>
	window.location.href='book_store.php'
	</script>";
}
?>

Copyright © 1945 - 2024 GOOGLE