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 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.