Vidyalelo
PHP · Q17

Databases Handling

Programming · PHP · question 17

Q17

Which of the following methods is used to execute the statement after the parameters have been bound?

A.
bind_param()
Answer
B.
bind_result()
C.
bound_param()
D.
bound_result()

Answer: Option A

Solution

Answer: Option A
Solution:
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.