mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in

前端 未结 1 1545
我在风中等你
我在风中等你 2020-12-12 08:36


        
1条回答
  •  遥遥无期
    2020-12-12 09:02

    use AND insted of comma (,) in query near password that's why query returning false and throw that error

    $select = "SELECT id FROM loginregistration WHERE login ='".$login1."' and password ='".$password1."'";
    

    UPDATE 1

    if query fail it return false . so you can use mysqli_error($con); to know the error

        
    

    0 讨论(0)
提交回复
热议问题