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 Arrays and Control Structures PHP Loops Do While Looping

While Loop. When I look at my while loop the starting year (100)years ago ie 1921 shows down the bottom of the screen.

This is how it looks: 1922 1923 1924 1925...

2020

1921

1 Answer

Hi Sharlene!

Are you including the <br /> to each line/iteration?

That's essential to have it display vertically.

I'm not sure that's your issue, but I hope it points you in the right direction.

Again, I hope that helps.

Stay safe and happy coding!