Skip to content
Advertisement

How to fix mysqli_error() expects exactly 1 parameter

When I run this code I give this error:

mysqli_error() expects exactly 1 parameter, 0 given

Its for $insert_stmt->execute() I don’t know why I have this error, because database and table is true and all of 4 values have sting

JavaScript

Advertisement

Answer

The function needs the statement also.

JavaScript

Check it here – mysqli_stmt_error

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