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 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 the Syntax for MySQLi Queries.
Write MySQL Connection Syntax with example.
Explain MySQLi Queries with examples.
