PHP DB Connection Code

$servername = "localhost";
$database= "db_form";

$username = "root";
$password = "";


// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
Previous
Next Post »
Thanks for your comment