What does the mysqli_error() expects parameter 1 to be mysqli, null given mean?

后端 未结 4 1105
北恋
北恋 2020-11-30 13:19

I have this PHP page:



        
4条回答
  •  感情败类
    2020-11-30 13:47

    You need to define: $dbc before

     $code = mysqli_real_escape_string ($dbc, $_GET['invite']);
    

    ex:

    $dbc = mysqli_connect("localhost", "my_user", "my_password", "world");
    

提交回复
热议问题