I try to connect to remote mysql database.
$DBH = new PDO(
'mysql:host='.$DB->DBHost.';dbname='.$DB->DBName,
$DB->DBLogin,
$DB->DBPassword
);
In $DB
object everything is OK. The properties DBHost
, DBName
, DBLogin
, DBPassword
exist and are correct. But, $DBH
object is empty and I don't know why. Thanks.