1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30
Files
neosubhamoy-portfolio/htdocs/core/connection.php

15 lines
356 B
PHP

<?php
//Collect Database info
$hostname = $_ENV['DB_HOST'];
$username = $_ENV['DB_USER'];
$password = $_ENV['DB_PASS'];
$database = $_ENV['DB_NAME'];
//Connect with Database
$conn = new mysqli($hostname, $username, $password, $database);
if ($conn -> connect_error) {
die("Database Connection Failed !" . $conn->connect_error);
}
echo "";
?>