代码:
$i=0;
while ($i < $rows) {
$storage_id = mysql_result($giftCards,$i,"id");
$result[$storage_id]['display_name'] = mysql_result($giftCards,$i,"display_name");
$result[$storage_id]['image_icon'] = mysql_result($giftCards,$i,"image_icon");
$result[$storage_id]['currency'] = mysql_result($giftCards,$i,"currency");
$i++;
}
return $result;
导致错误:
Warning: Cannot use a scalar value as an array in /home/chosen/public_html/classes/giftcards.class.php on line 13
在几行。
任何人都知道如何纠正这个问题?唯一一次出现这种情况是我设置的新 VPS。在其他服务器上运行良好。