Q8
Which one of the following methods can be used to diagnose and display information about a MySQL connection error?
A.
connect_errno()
B.
connect_error()
C.
mysqli_connect_errno()
AnswerD.
mysqli_connect_error()
Answer: Option C
Solution
Answer: Option C
Solution:
The mysqli extension includes a few features that can be used to capture error messages or alternatively you can use exceptions.