Which is the correct function to establish connection in PHP?
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?
What is MySQLi function?
What are the types MySQLi function available PHP?
Difference between Connection and Close function?
Give few examples of MySQLi Queries.
Write the Syntax for MySQLi Queries.
Write is the purpose of MySQLi function available.
Explain MySQLi Queries with examples.
