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

The static HTML below displays information about one really great movie. In this code challenge, we'll modify this so that it INSTEAD displays information about an even better movie; we'll also modify it to use an associative array in PHP instead of stati

<h1>Back to the Future (1985)</h1>

<table> <tr> <th>Director</th> <td>Robert Zemeckis</td> </tr> <tr> <th>IMDB Rating</th> <td>8.5</td> </tr> <tr> <th>IMDB Ranking</th> <td>53</td> </tr> </table>

5 Answers

Hi Courtney,

Your code is getting lost when you paste it. You need to put three backticks before and after the code for it to display properly. If you click the "Markdown Cheatsheet" link below the comment box, it will give you all of the Markdown you can use, but here is how to display code so we can help you with your question: Wrap your code with 3 backticks (```) on the line before and after.

It looks like this:
<br/>
<br/>

```

your code here

```

<br/>
<br/>
<br/>
<br/>

<?php $movie=array(

<h1>Back to the Future (1985)</h1>

<table> <tr> <th>Director</th> <td>Robert Zemeckis</td> </tr> <tr> <th>IMDB Rating</th> <td>8.5</td> </tr> <tr> <th>IMDB Ranking</th> <td>53</td> </tr> </table>

<table>

<h1>Back to the Future (1985)</h1>

<table> <tr> <th>Director</th> <td>Robert Zemeckis</td> </tr> <tr> <th>IMDB Rating</th> <td>8.5</td> </tr> <tr> <th>IMDB Ranking</th> <td>53</td> </tr> </table>

'''<?php $movie=array(

<h1>Back to the Future (1985)</h1>

<table> <tr> <th>Director</th> <td>Robert Zemeckis</td> </tr> <tr> <th>IMDB Rating</th> <td>8.5</td> </tr> <tr> <th>IMDB Ranking</th> <td>53</td> </tr> </table>

<table>'''