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 Data & Structure PHP Variables

I am not doing wrong

I am 100% that this easy code is correct.

index.php
$name = "Mike";
Konrad Pilch
Konrad Pilch
2,435 Points

If you can tell me the challenge please :)

click view challenge

Konrad Pilch
Konrad Pilch
2,435 Points

If I only could :) I can only use forum ;d

3 Answers

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Nils!

You forgot the first part - you need to open a php code block:

index.php
<?php
$name = "Mike";

oh yes silly me

Greg Kaleka
Greg Kaleka
39,021 Points

Don't worry - you'll do many more silly things when learning to code :smile:

Konrad Pilch
Konrad Pilch
2,435 Points

Here you go someone else done it for you :) Would be nice if treehouse would give people an ability to view the challenge, because sometimes is hard to help like that, as we can see -_-

Once you get better you spot things quicker from experience :D

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Konrad Pilch I don't know about you, but at the top right of my page is a "View Challenge" button. I generally right-click that and open in a new tab. Are you not getting the View Challenge button? That seems odd.

Konrad Pilch
Konrad Pilch
2,435 Points

Oh, I didn;t write it. Sometimes I have thing in my head, but i don't write them :D My subscription is out and i can only use forum. I can't help much when it comes to questions like this because i don't see the challenge.

Like you can see, the code is correct, but it was missing the opening PHP tag. I didn;t know what the challenge is asking for so i can't help him straight away, apart form him giving me the full challenge.

It's all dynamic at treehouse, untill , in my opinion, theres something made like this where i can't help if we think about this type of quesiton because of my subscription out.

And yeah, im crying over the subscirption, if it seems like lol it's summer and the gift i got is treehouse sub down : d gosh, the best time to learn is summer.

But at least i know what im doing.. PHP OOP and laravel.. so hopefully i learn it good enough and id earn soon.. in few months get the sub back.

;)

Thanks Greg and Konrad