Advertisements
Advertisements
Question
Which is the correct function to establish connection in PHP?
Options
mysqli_connect(“Server Name “,”User Name”,”Password”,”DB Name”);
connect(“Server Name “,”User Name”,”Password”,”DB Name”);
mysql_connect(“Server Name “,”User Name”,”Password”,”DB Name”);
mysqli_connect (“Database Object”);
Advertisements
Solution
mysql_connect(“Server Name “,”User Name”,”Password”,”DB Name”);
APPEARS IN
RELATED QUESTIONS
Which is the not a correct MySQL Function in PHP?
How many parameter are required for MYSQLI Close function in PHP?
Which version of PHP supports MySQLi fuctions?
What is MySQLi function?
What are the types MySQLi function available PHP?
What is Connection string?
Write MySQL Connection Syntax with example.
Discuss in detail about MySQL functions with example.
Explain in details types of MySQL connection method in PHP?
Explain MySQLi Queries with examples.
