Problem Warning: Invalidargumentsuppliedforforeach () in perfect solution: modify the statements that report errors as follows (for example): Change foreach ($ extcreditsas $ id = & gt; $ credit) {if ($ credit [& amp; #39; ratio & amp; #39;]) {$ exch problem Warning: Invalid argument supplied for foreach () in perfect solution, modify the statements that report errors as follows (for example): Set foreach ($ extcredits as $ id => $ credit) {if ($ credit ['Ratio ']) {$ exchcredits [$ id] = $ credit;} is changed to if (is_array ($ extcredits) // add {foreach ($ extcredits as $ id => $ credit) {if ($ Re Dit ['Ratio ']) {$ exchcredits [$ id] = $ credit ;}}// add or foreach (array) $ extcredits as $ id => $ credit) {if ($ credit ['Ratio ']) {$ exchcredits [$ id] = $ credit;} most of the reasons for this error are due to upgrade and encoding conversion! If you are familiar with PHP, you can directly find the cause of the error and analyze the database table to which the error is caused (usually the basic data table of the Forum). then, find the original data of the corresponding table and export it to solve the problem. If you are not familiar with PHP, you can modify the location indicated by the error information using the modification method on the second floor to solve the problem. Original article: http://www.phpweblog.net/kiyone/archive/2008/04/24/3250.aspx
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service