Vidyalelo
PHP · Q8

Databases Handling

Programming · PHP · question 8

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()
Answer
D.
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.