while trying to link my database to my server using xampp for the first time to test it out with the following code :
<?php
$host = 'localhost';
$user = 'root';
$pass = '';
$db_name = 'blog';
$conn = new MySQLi($host, $user, $pass, $db_name);
if ($conn->connect_error) {
die('Database connection error: '. $conn->connect_error);
}
?>
the result on my browser/server is blank how do i go about this and also creating a root user user on mySQL