帮忙改一下错,该如何处理

帮忙改一下错
请好心人帮忙改一下错

Warning: chkinput::include(conn/conn.php) [chkinput.include]: failed to open stream: No such file or directory in D:\AppServ\www\xiaoyuan\admin\chkadmin.php on line 15

Warning: chkinput::include() [function.include]: Failed opening 'conn/conn.php' for inclusion (include_path='.;C:\php5\pear') in D:\AppServ\www\xiaoyuan\admin\chkadmin.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\AppServ\www\xiaoyuan\admin\chkadmin.php on line 16

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\AppServ\www\xiaoyuan\admin\chkadmin.php on line 17



下面是chkadmin.php的代码
<?php
header ( "Content-type: text/html; charset=gb2312" ); //设置文件编码格式
class chkinput{
var $name;
var $pwd;

function chkinput($x,$y)
{
$this->name=$x;
$this->pwd=$y;
}

function checkinput()
{
include("conn/conn.php");
$sql=mysql_query("select * from tb_admin_user where name='".$this->name."'",$conn);
$info=mysql_fetch_array($sql);
if($info==false)
{
echo "<script language='javascript'>alert('不存在此管理员!');history.back();</script>";
exit;
}
else
{
if($info[pwd]=='$pwd'){
header("location:index.php");
}
else
{
echo "<script language='javascript'>alert('密码输入错误!');history.back();</script>";
exit;
}

}
}
}


$obj=new chkinput(trim($_POST[name]),md5(trim($_POST[pwd])));
$obj->checkinput();

?>



下面是 admin_user.php的代码



<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/font.css" rel="stylesheet">

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">







<script language="javascript">
function chkinput(form){
if(form.name.value==""){
alert("请输入用户名!");
form.name.select();
return(false);
}
if(form.pwd.value==""){
alert("请输入用户密码!");
form.pwd.select();
return(false);
}
return(true);
}
</script>









郑重声明:本文版权包含图片归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们(delete@yzlfxy.com)修改或删除,多谢。

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。

用户名:
留言与评论(共有 0 条评论)
昵称:
匿名发表
   
验证码: