हिंदी

What is Connection string?

Advertisements

प्रश्न

What is Connection string?

टिप्पणी लिखिए
Advertisements

उत्तर

The variables are used to connect to the database server. They are

  1. $servername → Database Server IP address
  2. $usemame → Database Server User Name
  3. $password → Database Server Password
  4. $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.

shaalaa.com
MYSQL Function in PHP
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Connecting PHP and MYSQL - Evaluation - PART – II [पृष्ठ १३२]
Advertisements
Share
Notifications



      Forgot password?
Use app×