我的PHP腳本顯示錯誤傳遞:嚴格的標準:只有變量應參考
Strict Standards: Only variables should be passed by reference in C:\....*.php on line 551
的代碼如下:
function trinity_premissions()
{
global $ACC_PDO, $WEB_PDO, $a_user, $db_translation;
$end = false;
$res = $WEB_PDO->prepare("SELECT acc_login, gmlevel FROM `accounts_more` WHERE UPPER(acc_login) = :acc");
/* 551 */$res->bindParam(':acc', strtoupper($a_user[$db_translation['login']]), PDO::PARAM_STR);
$res->execute();
if ($res->rowCount() == 1)
{
$s2 = $res->fetch(PDO::FETCH_ASSOC);
if ($s2['gmlevel']<>'')
{
return $s2['gmlevel'];
}
}
unset($res);
}
我不知道是什麼問題。誰能幫我?
可能重複(HTTP://計算器.COM /問題/ 2354609 /嚴格標準的,只有變量,應待通過按參考) –