मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

Write MySQL Connection Syntax with example. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write MySQL Connection Syntax with example.

थोडक्यात उत्तर

उत्तर

Syntax:

mysqli_eonnect(“Server Name”, “User Name”, “password”, “DB Name”);

Example:

<?php
Sservername = “localhost”;
Susername = “username”;
Spassword = “password”;
$DB_name = “SchooLDB”;
// Create connection
$conn = mysqli_connect($servemame, Susername, Spassword,$DB_name);
shaalaa.com
MYSQL Function in PHP
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 9: Connecting PHP and MYSQL - Evaluation - PART – III [पृष्ठ १३२]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 12 TN Board
पाठ 9 Connecting PHP and MYSQL
Evaluation - PART – III | Q 3. | पृष्ठ १३२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×