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 trialAdam Slaker
9,995 PointsIntegers and Floats
In the PHP basics section Integers and Floats, my workspace preview is not displaying the number 1 when I echo the variable $one. I have everything saved and I can't seem to figure out what the problem is. Here is my code:
<?php
$one = 1;
$two = 2;
$three = 3;
echo $one;
?>
Thanks!
2 Answers
thomascawthorn
22,986 PointsYou're code looks fine - have you got this working since?
Adam Slaker
9,995 PointsJust got it working. I was skimming through my HTML and it turns out I had the PHP block in between sections instead of nested within a section. I thought that because it was still in between the body tags it would display, but apparently not. Thanks for your quick response Tom. I had no idea how to style my posts, so I really appreciate that. Cheers!
thomascawthorn
22,986 Pointsthomascawthorn
22,986 PointsI've edited your post - checkout the 'markdown cheatsheet' for more info on styling your posts :-)