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

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right synta

how can i solve it, please help me sir, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc' at line 128"

2 Answers

Gias, The error message tells you where you might look for a problem: on line 128, likely right after the code that reads, desc. Without seeing that, no one here can tell you what the problem is, but you might be able to take another look at that line of code and realize there's a typo or something misnamed or some other issue. Hope you can figure it out! Cheers.

Alena Holligan
STAFF
Alena Holligan
Treehouse Teacher

Can you post the code right before line 128?