我已经将备份上传到一个表中,打开该表我看到了:
Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements Countable
Backtrace
./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'alternativegirls',
string 'tgp_photo',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `tgp_photo`',
NULL,
NULL,
)
./sql.php#216: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'alternativegirls',
string 'tgp_photo',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `tgp_photo`',
NULL,
NULL,
)
./index.php#53: include(./sql.php)
在phpMyAdmin内部...
PHP是7.2,服务器是Ubuntu 16.04,已于昨天安装。
寻找我发现有些人在他们的代码中有此错误,但是我没有在phpMyAdmin中找到任何收到此错误的人...
我该怎么办?那是我的错误吗?phpmyadmin错误?等待更新?我回到PHP 7.1吗?
if ( count($articles)){..}
在CodeIgniter中,他们应该使用:if ( count((array)$articles)){..}
如这里