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

You need to define: $dbc before

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

ex:

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

Leave a Comment