1.

Which of the following methods is used to execute the statement after the parameters have been bound?(a) bind_param()(b) bind_result()(c) bound_param()(d) bound_result()I had been asked this question during an internship interview.My doubt is from Working with Databases-2 in portion Objects and Databases in PHP of PHP

Answer»

Correct option is (a) bind_param()

The explanation: Once the statement has been prepared, it NEEDS to be executed. Exactly when it’s executed depends upon WHETHER you WANT to work with BOUND parameters or bound results. In the case of bound parameters, you’d execute the statement after the parameters have been bound with the bind_param() method.



Discussion

No Comment Found

Related InterviewSolutions