繁体   English   中英

加入表时 phpMyAdmin 出错(TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, null given)

[英]Error in phpMyAdmin when joining tables (TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, null given)

我一直在尝试加入两个表,其中 (on) 条件列可能包含空值。 我在 php myadmin 中不断收到以下 php 错误:

TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, 
null given in C:\xampp\phpMyAdmin\libraries\classes\Display\Results.php on line 2012

经过一番排查,原来phpMyAdmin版本(5.1.1)PHP版本(8.0.13)不兼容

按照此链接将 phpMyAdmin 升级到最新(5.2.0),错误没有再次出现,我能够成功运行我的查询。

在 xampp 服务器中更新 phpmyadmin

这也是我的查询仅供参考

SELECT * from table uc 
LEFT JOIN table u 
on u.id <=> uc.user_id

经过一番排查,原来phpMyAdmin版本(5.1.1)与PHP版本(8.0.13)不兼容

按照此链接将 phpMyAdmin 升级到最新(5.2.0),错误没有再次出现,我能够成功运行我的查询。

在 xampp 服务器中更新 phpmyadmin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM