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.

PHP Integrating PHP with Databases Limiting Records in SQL Pagination

Elizabeth Hicks
Elizabeth Hicks
44,870 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,870 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.