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

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

Pedro Baumann
Pedro Baumann
12,815 Points

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"]; ?>)

Chase Lee
Chase Lee
29,275 Points
?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.