mysqli_stmt::$error is an attribute in the MySQLi extension that is used to obtain error information about prepared statements. In theory, when execution of mysqli_stmt::execute() fails, you should be able to get detailed error information through mysqli_stmt::$error. However, in some cases, $error may be empty and cannot return an error message. At this time, how to effectively troubleshoot this problem?
mysqli_stmt::$error