[PHP] is there a way to get more info about *why* the initial (DB PEAR) connect to db is failing?

2009-07-03 Thread Govinda
my code: require 'DB.php'; // $db=DB::connect('db_program://user:passw...@hostname/database'); $db=DB::connect('mysql://metheuser:myp...@www.mydomain.com/ mydatabase'); if (DB::isError($db)) { die(Can't connect: . $db-getMessage()); } is returning: Can't connect: DB

Re: [PHP] is there a way to get more info about *why* the initial (DB PEAR) connect to db is failing?

2009-07-03 Thread Phpster
On Jul 3, 2009, at 7:31 PM, Govinda govinda.webdnat...@gmail.com wrote: my code: require 'DB.php'; // $db=DB::connect('db_program://user:passw...@hostname/database'); if (DB::isError($db)) { die(Can't connect: . $db-getMessage ()); } is returning: Can't connect: DB Error: