Help to change the mistake
Please kindly help to change the mistake.
Warning:chkinput::include (conn/conn.php) [Chkinput.include]: failed to open stream:no such file or directory in D:\AppSe rv\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.ph P on line 16
Warning:mysql_fetch_array (): supplied argument is not a valid MySQL result resource in D:\AppServ\www\xiaoyuan\admin\chka dmin.php on line 17
Here is the code for chkadmin.php
Header ("content-type:text/html; charset=gb2312 "); Set file Encoding format
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 "";
Exit
}
Else
{
if ($info [pwd]== ' $pwd ') {
Header ("location:index.php");
}
Else
{
echo "";
Exit
}
}
}
}
$obj =new chkinput (Trim ($_post[name)), MD5 (Trim ($_POST[PWD)));
$obj->checkinput ();
?>
Here is the code for admin_user.php
<title></title>
br>