<?php
$config = include '../config/config.php';
$servername = $config['servername'];
$username = $config['username'];
$password = $config['password'];
$database = $config['database'];

$conn = new mysqli($servername, $username, $password, $database);

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