Read the error message, it's pretty explicit:
mysqli_error() expects exactly 1 parameter, 0 given
Then read the documentation for the function:
PHP mysqli error() Function[
^] and it says:
Parameter Values
Parameter Description
connection Required. Specifies the MySQL connection to use
Since you don't actually show us the PHP code you are using, we can't tell you exactly what to change, but you should be able to work that out for yourself - just add the relevant connection object as a parameter to the function call.