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 Using PHP with MySQL Limiting Records in SQL Queries Using LIMIT with Offset

This is an open question, however, it is also very vague and I have no idea what kind of answer is expected here

Please clarify the question thx.

Hi Tao W

I think your description of the question you're referring to is just as vague!

For the best chance of getting a good answer, It's good to post the question you're trying to answer plus the answer(s) you've attempted :-)

2 Answers

Looking at the quiz question you've attached this forum post to, I believe it is asking you to indicate what the data type for the placeholder variable '?' would be in that prepared statement.

You can refer to the PDOStatement::bindParam documentation in the PHP manual.

I don't want to give the exact answer on the forums, but have a look at the Example #2 on that manual page. It will be something with the prefix PDO::PARAM_

Jonathan Woodbury
Jonathan Woodbury
12,711 Points

That really is a poorly written question. I had not idea what it was talking about either. Thank you for your help.