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 Build a Simple PHP Application Listing Inventory Items Associative Arrays

What am i doing wrong?

So, i have done this and it gives me error. Isn't it asking to replace the movie title? http://awesomescreenshot.com/0262k0tq63

4 Answers

I solved it, i was missing space between the movie and year.thanks!

Good job figuring it out.

Your $movie array should have been created above all the html. First, move that up and see where you're at.

Also, at this point in the task, your movie array should only have a "title" key with value "The Empire Strikes Back". Your movie array is showing all the info for "Back to the Future"

Still doesn't change the error http://awesomescreenshot.com/0b32k15y78

The error message is different indicating something changed. When you had your $movie array below the h1 the first time you were trying to use a variable that hadn't been defined yet.

This time the message is indicating a problem with the year. The problem is that the movie and year run together with no space between them. Enter a space between the php script and the year.