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!

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 If / ElseIf Conditionals

Like a free youtube video - I can follow along until you start skipping key pieces of information and code. pls fix. ty

Please fix soon, I'd like the paid membership to actually help me learn. Thanks.

Hi Danielle,

It would probably be most helpful if you described exactly where you are getting stuck, or where you feel the video is falling short, so that the specifics can help Treehouse address the issue, if there is in fact an issue.

2 Answers

Philip Dodd
Philip Dodd
6,288 Points

I 'm having the same issue as Danielle

Jason Lucero
Jason Lucero
644 Points

Hey guys,

One thing I found helpful is to pause the video at the beginning and take a look at the variables that are in the index file before I start. Even if you don't do this the errors that you will get in your workspaces page will give you good information as to why its not working.

I got an error on this part as well but from the error found that I wasn't declaring my variable for $role first so when I was using it in the if statement and attempting to echo that out I got the error. I think the reason we don't go over setting the variables on each video is because we have gone over those dependencies in earlier modules and can learn by making mistakes then taking the troubleshooting steps to fix them ourselves.