PHP代码问题Fatal error: Call to a member function query() on a non-object
Fatalerror:Calltoamemberfunctionquery()onanon-objectinD:\xampp\htdocs\test\php\user_a...
Fatal error: Call to a member function query() on a non-object in
D:\xampp\htdocs\test\php\user_auth_with_db.php on line 8
以下是代码
$connect = db_connect_userauth();
$result = $connect->query("select * from user where username = '".$username."'");//第八行
求解哪错了 展开
D:\xampp\htdocs\test\php\user_auth_with_db.php on line 8
以下是代码
$connect = db_connect_userauth();
$result = $connect->query("select * from user where username = '".$username."'");//第八行
求解哪错了 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询