Which one of the following methods can be used to diagnose and display information about a MySQL connection error?

Which one of the following methods can be used to diagnose and display information about a MySQL connection error? Correct Answer mysqli_connect_errno()

The mysqli extension includes a few features that can be used to capture error messages or alternatively you can use exceptions.

Related Questions

What happens if the following program is compiled and executed? interface MyInterface{ void display(); } interface MySubInterface extends MyInterface{ void display(); } public class Test implements MySubInterface{ public void display(){ System.out.print("Welcome to Examveda."); } public static void main(String args[]){ Test t = new Test(); t.display(); } }
What will be the output when the following program is compiled and executed? abstract class TestAbstract{ String my_name; String myName(){ my_name = "Examveda"; return my_name; } abstract void display(); } public class Test extends TestAbstract{ void display(){ String n = myName(); System.out.print("My name is "+ n); } public static void main(String args[]){ Test t = new Test(); t.display(); } }