Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
mavromanolakis michail533 Points
works in preview but bummer say that i forgot the command echo
this is my code: <?php echo 'Today is '; //Place your code below this comment $today = date('F d, Y'); echo $today; ?>
<?php echo 'Today is '; //Place your code below this comment $today = date('F d, Y'); echo $today; ?>
Jason AndersTreehouse Moderator 145,627 Points
For the most part, you have it. Everything is syntactically correct... except the instructions did not say to create a new variable to hold the date. The instructions specifically say:
"Use a SINGLE date function to display today's date in the message.".
So, just delete the variable declaration and
echo out the date directly and the task will pass.
A good thing to remember is that Challenge instructions are always very specific and need to be followed exactly. If you do something that wasn't asked for, misspell a word, miss a punctuation mark, etc... you'll more that likely to receive the
Bummer even though the code is syntactically correct. So, just watch the instructions.
Otherwise, Nice work! :)