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 trialammarkhan
Front End Web Development Techdegree Student 21,661 PointsWhat 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
ammarkhan
Front End Web Development Techdegree Student 21,661 PointsI solved it, i was missing space between the movie and year.thanks!
Jason Anello
Courses Plus Student 94,610 PointsYour $movie array should have been created above all the html. First, move that up and see where you're at.
Jason Anello
Courses Plus Student 94,610 PointsAlso, 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"
ammarkhan
Front End Web Development Techdegree Student 21,661 PointsStill doesn't change the error http://awesomescreenshot.com/0b32k15y78
Jason Anello
Courses Plus Student 94,610 PointsThe 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.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsGood job figuring it out.