书名:《PHP+MySQL开发实战》
章节:第28章
实例:易查供求信息网
页数:P.621
问题:在管理员登录页面中,由于不知道用户名和密码,无法运行实例,请老师告知。
另外,第29章,图书馆管理系统的P.660也不知道用户名和密码,请老师告知。谢谢老师!
按照老师说的用户名mr密码mrsoft,还是不行。出现了如下的出错信息:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; chkinput has a deprecated constructor in C:\MAMP\htdocs\PHP-DVD\28\chklogin.php on line 6
Notice: Use of undefined constant name - assumed 'name' in C:\MAMP\htdocs\PHP-DVD\28\chklogin.php on line 3
Notice: Use of undefined constant pwd - assumed 'pwd' in C:\MAMP\htdocs\PHP-DVD\28\chklogin.php on line 4
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\MAMP\htdocs\PHP-DVD\28\conn\conn.php:2 Stack trace: #0 C:\MAMP\htdocs\PHP-DVD\28\chklogin.php(16): include() #1 C:\MAMP\htdocs\PHP-DVD\28\chklogin.php(31): chkinput->checkinput() #2 {main} thrown in C:\MAMP\htdocs\PHP-DVD\28\conn\conn.php on line 2