Help to change the wrong, how to deal with

Source: Internet
Author: User
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>



  • /tbody>
    username:

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.