且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Mysqli_error()不起作用

更新时间:2023-01-22 16:22:33

我执行UPDATE语句时发生了同样的事情.

Same thing happened to me when I executed an UPDATE statement.

mysqli_error,mysqli_errno和mysqli_error_list全部为空.

mysqli_error, mysqli_errno and mysqli_error_list were all empty.

然后我发现问题是分配给连接对象的数据库用户没有UPDATE特权.我不知道为什么我没有收到此安全/特权违规的错误消息或错误号.

Then I discovered that the problem was that the database user assigned to the connection object did not have the UPDATE privilege. I don't know why I did not receive an error message or an error number for this security/privilege breach.