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 PHP Basics (Retired) PHP Conditionals & Loops Conditionals Challenge

Code Challenge: 2/3 PHP Conditionals

<?php
$name = 'Mike';
if ($name == 'Mike') {};
?> 

When I put this in I get "Bummer! I cannot see the 'if' statement!"

Any ideas?

9 Answers

Thanks, sorry about the double post, Support just told me to post here.

This worked for me

<?php $name = "Mike"; if( $name == true ) { $info = 'Hi, I am Mike!'; echo $info; } ?>

Justin,

What was the question? I see the variable and the start of an if function.

William LaMorie
William LaMorie
11,769 Points

The problem he's encountering, that I am as well, is that the exercise tells you to make an if statement testing if $name == 'Mike', however, it doesn't specify what do, and it says 'Bummer! I cannot see the 'if' statement!' when you try to solve it correctly.

There's got to be a bug, I couldn't get it going either.

There's got to be a bug, I couldn't get it going either.

Paul Carter
Paul Carter
12,543 Points

Yup, getting this too. Am posting here so I can follow this thread...

William LaMorie
William LaMorie
11,769 Points

The final code challenge for the assignment also seems to have an issue with it, I skipped past and encountered a very similar message there.

Paul Carter
Paul Carter
12,543 Points

Yes, again - me too. Odd. I'm reporting it as a bug and will reply with the answer, whether it's our error or a bug.

Thanks

William LaMorie
William LaMorie
11,769 Points

I also reported it hopefully it will get sorted out soon!

William LaMorie
William LaMorie
11,769 Points

They emailed today, said it was fixed, and it is, in fact, fixed, I finished them

Paul Carter
Paul Carter
12,543 Points

Thanks Will. Nice one.