Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Using PHP with MySQL Filtering Input for Queries Preparing SQL Statements

The URL: shirts/101/ returns shirt// and simply displays the first page of the shirts listing page.

If I click on the shirt which links to shirts/101/ or type in that URL manually, I am redirected to the shirts listing page and it simply says shirts//

I downloaded the most recent version of the project and it still isn't helping.

I imagine that it might have something to do with the .htaccess file but I can't seem to find any errors.

2 Answers

I just had to clear my cache and it worked!

I discovered this using Chrome's developer tools.

Under the network tab I noticed the first call to 101/ was getting an error 301 Moved Permanently error. I noticed after that message it said "cached".

I cleared my cache and it worked!!!