<?php
define("SERVER", 'sql304.epizy.com');
define("USER", 'epiz_26809984');
define("PASSWORD", '*********');
define("DB", 'epiz_26809984_leighrufc');
$con = @mysqli_connect(SERVER,USER,PASSWORD,DB);
if (!$con) {
die('Connect Error: ' . mysqli_connect_errno() . PHP_EOL);
}
?>
So this is my code.
My hostname doesn’t seem to be working. I have been through the forums but haven’t found a solution yet. I have copied everything directly from the credentials for the sql server.
whenever i try to access it as a url there is nothing and I get no connection at all.
Whenever i go to PHPMyAdmin i see the IP address of the SQL server. That gives me the Error 2002 problem. Am i missing something ridiculous?