<?php
$host = "localhost";
$user = "root";
$pass = "";
$db   = "inventory";  // your database name

// Create connection
$conn = new mysqli($host, $user, $pass, $db);

// Check connection
if ($conn->connect_error) {
    die("Database Connection failed: " . $conn->connect_error);
}
?>