14 lines
353 B
PHP
14 lines
353 B
PHP
<?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);
|
|
}
|
|
?>
|