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

Code Challenge: Associative Arrays / 5 task

Hi! Could you help, I cant see what I doing wrong(

http://gyazo.com/10edd57e24d65be31fcef83a248ff70d - heres a screenshot

Here is my code

<?php $movie = array ( "title" => "The Empire Strikes Back", "year" => "1980", ); ?>

<?php echo $movie["title"];?> (<?php echo $movie["year"]; ?>)

<table> <tr> <th>Director</th> <td></td> </tr> <tr> <th>IMDB Rating</th> <td></td> </tr> <tr> <th>IMDB Ranking</th> <td></td> </tr> </table>

3 Answers

you needed to leave the H1 tags intact as well.

Exactely, Don't erase the HTML just work around it

?php $movie = array ( "title" => "The Empire Strikes Back", "year" => "1980", ); ?>

<?php echo $movie["title"];?> (<?php echo $movie["year"]; ?>)

?php $movie = array ( "title" => "The Empire Strikes Back", "year" => "1980", ); ?>

<?php echo $movie["title"];?> (<?php echo $movie["year"]; ?>)

Dont work:)

Thnx for advice:) All work for now.