PHP-MySQL-Blog-Website-with.../config/database.php
2023-01-03 13:11:23 +06:30

8 lines
No EOL
170 B
PHP

<?php
require 'constants.php';
$connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
if(mysqli_errno($connection)){
die(mysqli_error($connection));
}