Skip to content
Advertisement

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

I have this PHP page:

JavaScript

This is returning the error Warning: mysqli_error() expects parameter 1 to be mysqli, null given.

Any idea why?

Advertisement

Answer

You need to define: $dbc before

JavaScript

ex:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement