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 Integrating PHP with Databases Limiting Records in SQL Pagination

Elizabeth Hicks
Elizabeth Hicks
44,877 Points

Issue with choices of question "Which code sample will not work"

choice for ($i=0; $i < $count); $i++) {} has error in it so I picked this as this one. It needs to be fixed or allowed

Algirdas Lalys
Algirdas Lalys
9,389 Points

Hi Elizabeth Hicks,

Yes indeed, you have spotted mistake, there shouldn't be ) after $count variable. It seems challenge wanted to find us infinitive loop which is in a while loop of that question.

Elizabeth Hicks
Elizabeth Hicks
44,877 Points

Right but the wording of the question should have made it so choosing the one I pointed out is valid. That's why I pointed this out. The question didn't say which code will cause an infinite loop is asked which will not work.

Algirdas Lalys
Algirdas Lalys
9,389 Points

Of course it's a mistake someone misspelled it wrong I think:) It's better to inform support, they should edit it. You have great eye. I didn't noticed it when I was going through this Quiz first time.