Database connection PHP

Pranat
0
Lamp

 <?php


$server = 'localhost';

$username = 'root';

$password = '';

$database = 'mscst';


$con = new mysqli($server, $username, $password, $database);

if ($con->connect_error) {

    die("Connection failed: " . $con->connect_error);

}

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)
Our website uses cookies to enhance your experience. Learn More
Accept !