gpt4 book ai didi

php - fatal error : Cannot use object of type mysqli_result

转载 作者:可可西里 更新时间:2023-10-31 22:19:16 25 4
gpt4 key购买 nike

<分区>

当我注意到我的一个 mod 给我这个错误时,我正要打开我的网站:

Fatal error: Cannot use object of type mysqli_result as array in /var/www/vbsubscribetouser.php on line 303

我已经转到第 303 行,这是我发现的:

//Check if requested username can be followed.
if (in_array($followingdata['usergroupid'], explode("|", $vbulletin->options['subscribetouser_usergroups_cannot']))){

这是从第 303 行开始的所有代码:

//Check if requested username can be followed.
if (in_array($followingdata['usergroupid'], explode("|", $vbulletin->options['subscribetouser_usergroups_cannot']))){
exit;
}

if ($followinginfo[subscribers] > 0){
$user_followers = $followinginfo[followers].$userinfo[userid].'|';
}
else{
$user_followers = '|'.$userinfo[userid].'|';
}

$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "user
SET subscribers = subscribers + 1, `followers` = '$user_followers'
WHERE userid = $followinginfo[userid]
");

我不是 php 编码方面的专家,因此在打开网站之前提供一些帮助会非常有用。有什么帮助/建议吗?

非常感谢!

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com