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 trialKaleb Mesho Abraha
1,219 PointsWhen I click on edit it does not get me to add.php
when I click on edit it does not get me to add.php but instead shows me this " Fatal error: Uncaught Error: Call to undefined method PDO::perpare() in /home/treehouse/workspace/inc/functions.php:45 Stack trace: #0 /home/treehouse/workspace/edit.php(6): getBook('3') #1 {main} thrown in /home/treehouse/workspace/inc/functions.php on line 45"
here's my snapshot https://w.trhou.se/u2av6m5rxb
regards
1 Answer
Robert Anthony
19,952 PointsYou have a typo. The function should be prepare()