5
我要打開我的網站時,我發現我的MODS的人給我這個錯誤:致命錯誤:無法使用類型mysqli_result的對象
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代碼方面的專家,所以雙在打開網站之前,幫助會很好。任何幫助/建議?
非常感謝!
這做到了。非常感謝你!我應該開始學習一些PHP! – 2013-05-13 15:24:50