Domanda

been waiting an hour to find out correct way to connect to mysql at UKHOST4U, thought someone on here may know?

Been using the following code, database, user & password are all setup correctly:

$hostn='localhost';
$dbn='cpanel1_dbname';
$passn='password';
$usern='cpanel1_usrname';
$dbh = @mysqli_connect($hostn, $usern, $passn, $dbn);
if(!$dbh)
    die('hmm that did not seem to work; please try another day..');

I have obvioulsy changed the actual values.

I have just moved to UKHost4U - Am I missing something?!

È stato utile?

Soluzione

I had to contact them and 'then it worked' as per normal..

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top