PHP Foreach Error! Pls Help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Miteshsach86
Forum Newbie
Posts: 7
Joined: Thu Oct 07, 2010 4:41 am

PHP Foreach Error! Pls Help!

Post by Miteshsach86 »

Hi Guys,

This error was resolved thank you!

M
Last edited by Miteshsach86 on Thu Oct 14, 2010 11:14 am, edited 1 time in total.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: PHP Foreach Error! Pls Help!

Post by AbraCadaver »

You're concatenating a string "< br />\n" with an array $bbcp[1] which gives you a string $pcontent, which you can't operate on with foreach().
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Miteshsach86
Forum Newbie
Posts: 7
Joined: Thu Oct 07, 2010 4:41 am

Re: PHP Foreach Error! Pls Help!

Post by Miteshsach86 »

AbraCadaver you are a genious! Thank you! :D
Post Reply