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
How many parameter are required for MYSQLi connect function in PHP?
How many parameter are required for MYSQLI Close function in PHP?
Which version of PHP supports MySQLi fuctions?
What are the types MySQLi function available PHP?
Difference between Connection and Close function?
What is Connection string?
Write is the purpose of MySQLi function available.
Write MySQL Connection Syntax with example.
Discuss in detail about MySQL functions with example.
Explain MySQLi Queries with examples.
