Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP CRUD Operations with PHP Creating Records Reading Project Data

no error

my workspaces didn't show the error mention in the video, that the for each was expecting an array, I am just curious why it happened. thanks

1 Answer

Darrell Conklin
seal-mask
.a{fill-rule:evenodd;}techdegree
Darrell Conklin
Python Development Techdegree Student 22,377 Points

I've had a similar issue with the PHP coarses lately. Try adding:

ini_set('display_errors', 1);
error_reporting(E_ALL);

to the top of the index.php file just after the opening PHP tag and see if the error shows up. If so the apache server's settings have error reporting turned off. If you wish to turn error reporting back off for any reason you can always comment it out.