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 PHP & Databases with PDO PDO Database Security PDO Security

Paul Yabsley
Paul Yabsley
46,713 Points

Incorrect question, stage 3, PHP & Databases with PDO

Hi, I think there is an error on the PDO Database Security quiz.

http://teamtreehouse.com/library/php-databases-with-pdo/pdo-database-security/pdo-security-2

It is asking: What do I need to call on a PDOStatement object after I've bound the parameters?

The answer it accepted for me was exec() but I believe it should be execute().

Matt Bowlby
Matt Bowlby
8,806 Points

I ran into the same issue and I agree with you. In my opinion, the answer should be execute().

Ricky Catron
Ricky Catron
13,023 Points

After looking into the documentation I believe you are correct as well. Hampton Paulk

1 Answer

Good Catch! All fixed now. Thanks again.