How to Connect Database in php

# It used in core php $dbhost = HOSTNAME; $dbuser = DATABASE USERNAME; $dbpass = DATABASE_PASSWORD; $dbname = DATABASE_NAME; $link = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);