Budget: 500 UAH Deadline: 1 day
Write help.
The error occurs because mysqli_prepare cannot prepare a sql request and returns false, and the mysqli_stmt_close function accepts a "prepared sql request", i.e. Examples of the class mysqli_stmt
In general, you need to rewrite a little logic of your code and then everything will work.