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 connect function in PHP?
How many parameter are required for MYSQLi query 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?
Give few examples of MySQLi Queries.
What is Connection string?
Write is the purpose of MySQLi function available.
Discuss in detail about MySQL functions with example.
