On Jul 18, 2010, at 12:14 AM, Erdal YAZICIOGLU wrote:
Warning: Invalid argument supplied for foreach() in/home/gbhldorg/domains/gbhlmd.org/public_html/application/views/scripts/admin/bulletin.phtml on line 49.
foreach() requires an array. If you give it some non-array object or a scalar or a boolean or something, it gives a warning like that.
If you fetched results from the database, it may have returned a result that is null or false or a single object (not an array). Perhaps your query failed, or returned an empty result set. You should always check the result from a database fetch and make sure there was no error.
Tip: when you ask questions about your code, you should post enough code to provide some context. For instance in this case, line 49 of bulletin.php, and the preceding code that sets any variables used in line 49.
Regards,
Bill Karwin
没有评论:
发表评论