PHP-MySQL-Blog-Website-with.../config/database.php

8 lines
170 B
PHP
Raw Normal View History

<?php
2023-01-03 06:41:23 +00:00
require 'constants.php';
$connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
if(mysqli_errno($connection)){
die(mysqli_error($connection));
}