请问为什么我的网页按添加删除都没有反应
如题,我用的是PHP和mySQL,是不是要把添加和删除的代码分到另一个文件来写
学生信息录入
require "fun.php";
session_start(); //启动SESSION
$number=@$_POST['StuNumber']; //获取学生号
$_SESSION['number']=$number; //讲学生号值传给其他页面
$sql="select*from XSB where XH='$number'"; //查找该生信息
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
if(($number!==NULL)&&(!$row)) //判断学号是否存在
echo "<script>alert('没有该学生信息!')</script>";
$timeTemp=strtotime($row['CSSJ']); //将日期解析为UNIX时间戳
$time=date("Y-n-j",$timeTemp); //用date函数将时间转换为"年-月-日"
?>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn