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 trialCarlos Castanheira
2,700 PointsChallenge has a problem!
I am in the task 3 of 7 and I have checked the code and it is correct but still says there is a mistake!
Bummer! It looks like the title of the second movie is in the <h1>, but something else isn't quite right. Double-check the parentheses and the year. Preview Recheck work
movie.php
1
<?php
2
$movie = array();
3
$movie["title"] = "The Empire Strikes Back";
4
?>
5
<h1><?php echo $movie["title"]; ?>(1985)</h1>
6
7
<table>
8
<tr>
9
<th>Director</th>
10
<td>Robert Zemeckis</td>
11
</tr>
12
<tr>
13
<th>IMDB Rating</th>
14
<td>8.5</td>
15
</tr>
16
<tr>
17
<th>IMDB Ranking</th>
18
<td>53</td>
19
</tr>
20
</table>
3 Answers
. Ali
9,799 Pointsit could be some thing as silly as space :) try giving a space between the title of movie and the year
Carlos Castanheira
2,700 Pointsthanks I'll check it out, i just noticed that when i pasted it, it did not show the <h1></h1> tags that I did have on, and I thought you would think that was the problem. I tested in my server the code and it displayed everything correctly, so I was confused.
Thanks!
Thomas Manley
13,048 PointsI'm having this same problem. The code tests just fine on my local machine. I have this line that I submit but keep making errors.
<h1> <?php echo $movie["title"]; ?> (1985) </h1>
As I said it tests just fine on my local machine and the hints that they give tell me to check the parenthesis which I've done.
Joe Hirst
Courses Plus Student 6,489 PointsJoe Hirst
Courses Plus Student 6,489 PointsI was just stuck on this. Couldn’t pass until I noticed your comment about checking the space between the title and date. Thanks!