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 trialSajid Latif
Full Stack JavaScript Techdegree Student 22,368 PointsCan anyone find this problem?
Something is wrong her...
<?php
$name = 'Mike';
if ( $name == 'Mike' ){
echo "Hi, I am Mike";
}
?>
2 Answers
Mohd Maqbool Alam
Full Stack JavaScript Techdegree Student 5,715 Pointsecho "Hi, I am Mike";
Replace it with the following code
echo "Hi, I am Mike!";
Philip Carpentier
11,931 PointsI have copied your code into the challenge and after adding the '!' it works fine!
just end with Mike!
instead of Mike
Hope this helps!
Sajid Latif
Full Stack JavaScript Techdegree Student 22,368 PointsSajid Latif
Full Stack JavaScript Techdegree Student 22,368 PointsIve tried that as well...
Sajid Latif
Full Stack JavaScript Techdegree Student 22,368 PointsSajid Latif
Full Stack JavaScript Techdegree Student 22,368 PointsIve tried. I now changed it with
if(name == TRUE) {...
Then it worked. Strange.
Thanks for the help any way :smile