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!
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
Why was PDO::FETCH_ASSOC removed ?
In the last video we were told to use PDO::FETCH_ASSOC to turn the array into an associate array, but all of a sudden it dissappeared.
Shouldn't the code be like this????
$catalog = $result->fetchAll(PDO::FETCH_ASSOC);
I assume you are talking about the challenge. I thnk this is because there is a defalt fetch style witch is Fetch_ASSOC
Alena Holligan .- Why was PDO::FETCH_ASSOC removed? You never showed this step. Does this mean that when we now fetch the catalog that it's doing twice the work? Since it's fetching both an associative array and also an indexed array?