Cool-Shopping-Site/db.php

17 lines
275 B
PHP

<?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());
}
?>