Hi,
I am using Easyphp, and Maguma as IDE/debugger. When I step through my code, I found that the following code:
$dsn = "mysql://{$username}:{$password}@{$hostName}/{$databaseName}";
$connection = DB::connect($dsn);
$connection keeps getting NULL. Why? I checked the mysql error log, there is no error. I double checked all names for host and username and password, and they are correct. I checked the manual for the return value of DB::connect, but it mentions nothing about NULL.
How to fix it?
Many thanks.
I am using Easyphp, and Maguma as IDE/debugger. When I step through my code, I found that the following code:
$dsn = "mysql://{$username}:{$password}@{$hostName}/{$databaseName}";
$connection = DB::connect($dsn);
$connection keeps getting NULL. Why? I checked the mysql error log, there is no error. I double checked all names for host and username and password, and they are correct. I checked the manual for the return value of DB::connect, but it mentions nothing about NULL.
How to fix it?
Many thanks.
Comment