Advertisements
Advertisements
प्रश्न
What is Connection string?
Advertisements
उत्तर
The variables are used to connect to the database server. They are
- $servername → Database Server IP address
- $usemame → Database Server User Name
- $password → Database Server Password
- $DB_Name → Database Name
The mysqli connect function uses these variables and connect Database server from PHP scripting. If the connection gets fail, output will be printed with MySQL error code. Otherwise, the connection is a success.
APPEARS IN
संबंधित प्रश्न
Which is the correct function to establish connection in PHP?
Which version of PHP supports MySQLi fuctions?
What are the types MySQLi function available PHP?
Difference between Connection and Close function?
Give few examples of MySQLi Queries.
Write is the purpose of MySQLi function available.
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.
