首页上一页 1 下一页尾页 1 条记录 1/1页
检测用户明码是否正确,代码运行出现错误
发表在PHP图书答疑
2018-08-05 悬赏:1 学分
《PHP项目开发实战入门》第1章 hao365网址之家 39页-0页
是否精华
是
否
版块置顶:
是
否
/**检测用户名密码是否正确**/
$username=I("username"," ","trim"); //接收用户名,并使用trim函数去除首尾空格
$password=I("password"," ","md5"); //接收密码,并且使用md5函数加密
$return=$this->checkPassword($username,$password);
[SQL]SELECT*FORM"nav_admin" WHERE"username"='mr'LIMIT1
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FORM"nav_admin" WHERE"username"='mr'LIMIT1' at line 1
:(
syntax error, unexpected '$username' (T_VARIABLE), expecting function (T_FUNCTION)
错误位置
FILE: D:\software\phpStudy\PHPTutorial\WWW\APP\Application\Admin\Controller\PublicController.class.php LINE: 51
ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]