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

Deleted the Database because I couldn't change the file or preview it.

So I created a new database file with the same name and ending tag. Now I get this error "Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 no such table: books in /home/treehouse/workspace/inc/functions.php:51 Stack trace: #0 /home/treehouse/workspace/inc/functions.php(51): PDO->prepare('SELECT books.*,...') #1 /home/treehouse/workspace/books.php(11): getALlBooks() #2 {main} thrown in /home/treehouse/workspace/inc/functions.php on line 51"

And the reason I deleted the database was that I couldn't change it because whenever I pressed on the upvote or the downvote button nothing happens, no error came up, no nothing happened. Here's the snapshot: https://w.trhou.se/caxp7iqxeg