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

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.