<?php
$servername = "localhost";
$username = 'root'; // your database system username
$password = 'pas123'; //your database system password
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
$servername = "localhost";
$username = 'root'; // your database system username
$password = 'pas123'; //your database system password
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
No comments:
Post a Comment