$host_name = 'db5005797255.hosting-data.io';
$database = 'dbs4868780';
$user_name = 'xxxxxxxxx';
$password = 'xxxxxxxxxxxxxxxxxxxx';
$link = new mysqli($host_name, $user_name, $password, $database);
if ($link->connect_error) {
die('\<p\>Failed to connect to MySQL: '. $link-\>connect_error .'\</p\>');
} else {
echo '\<p\>Connection to MySQL server successfully established.\</p\>';
}
?>