Ask the question of a foreach () function
PHP warning:invalid argument supplied for foreach () in C:\inetpub\wwwroot\hp\client_list.php on line 126
foreach ($idcheck as $u + $s) //This type of foreach will error
What method does not change the original sentence (the original sentence in the site in many places to use) to solve the error problem, in addition (shielding error function) can be changed php.ini to achieve this function? Solving!
------to solve the idea----------------------
The problem should be solved proactively, not avoid
Problems to be solved at the source, not after the remedial
All you have to do is make sure that $idcheck is an array (even an empty array).
------to solve the idea----------------------
Increase:
error_reporting (0); Turn off Error Reporting
?> try it.
Or
PHP.ini • All errors off display_errors = off; Give it a try.