Cool-Shopping-Site/db.php

18 lines
275 B
PHP
Raw Normal View History

2024-05-17 20:57:41 +00:00
<?php
$servername = "localhost";
$username = "root";
$password = "";
$db = "storedatabase";
// Create connection
$con = mysqli_connect($servername, $username, $password,$db);
// Check connection
if (!$con) {
die("Connection failed: " . mysqli_connect_error());
}
?>