Advertisements
Advertisements
प्रश्न
Write MySQL Connection Syntax with example.
संक्षेप में उत्तर
Advertisements
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
Which is the correct function to establish connection in PHP?
Which is the not a correct MySQL Function in PHP?
How many parameter are required for MYSQLi connect function in PHP?
How many parameter are required for MYSQLi query function in PHP?
What are the types MySQLi function available PHP?
Difference between Connection and Close function?
What is Connection string?
Write is the purpose of MySQLi function available.
Discuss in detail about MySQL functions with example.
Explain MySQLi Queries with examples.
