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

Janko Prester
Janko Prester
1,521 Points

Challenge question (associative arrays) Task 7

http://teamtreehouse.com/library/build-a-simple-php-application/listing-inventory-items/associative-arrays

I have this code:

http://codepen.io/anon/pen/GlLpz

It works fine when I run it on my local server (preview doesn't work on Treehouse for some reason) , but I get this error message:" Bummer! It looks like the ranking is displayed in the browser, but the HTML around it does not seem to be correct. Please double-check the spacing and other formatting." I don't see where is the problem.

James Barnett
James Barnett
39,199 Points

Rather than using codepen which is a code playground which supports HTML/CSS/JS use a PHP code playground

1 Answer

Janko Prester
Janko Prester
1,521 Points

Eh.. again I found the problem myself. I've put the number values with quotes, which confused the debugger.