时间:2021-07-01 10:21:17 帮助过:6人阅读
学生信息
//######################学生信息##########################
include "config.php";
include "header.php";
?>
extract($_POST);
if ($xuehao=="" ||$password=="")
{
echo"请把信息填写完整
";
echo "";
exit;
}
else
{
$query="select * from $student_table where xuehao='$xuehao'";
mysql_query("set names 'GB2312'");
$result=mysql_query($query);
$row=mysql_fetch_array($result);
if($row==0)
{
echo"你还没有注册,请先注册。
";
echo "";
exit;
}
$query="select password as sm from $student_table where xuehao='$xuehao'";
mysql_query("set names 'GB2312'");
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$num=strlen($row['xuehao']);
$xh=$row['xuehao'];
$n=0;
if($row[sm]!=$password)
{
echo"你输入的学号和密码不匹配,请重新输入。
";
echo "";
exit;
}
}
?>