1
I’m having a problem connecting to 000webhost
The code I have is: I think I’m fine because I just changed the values you matched to the localhost
<?php
ob_start();
$link = mysql_connect('planos.comla.com', 'a9046774_planos', '') or die('Could not con: ' . mysql_error());
//$link = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error());
mysql_select_db('a9046774_planos') or die('Could not select database: ' . mysql_error());
mysql_set_charset('utf8');
?>
And when I put this file in 000webhost
appears me this error message
Could not con: Access denied for user 'a9046774_plans'@'10.1.1.23' (using password: NO)
Puts the code and connection strings in the question.
– Ricardo
What do you mean? ?
– Barofscas
I updated my answer with a code that I found on the internet of a person informing that it got this way. Changes the data to your case.
– Ricardo
Puts the host as
localhost
and also the password used to access this server.– Edilson