MDB vs DB connect

From: Date: Fri, 29 Aug 2003 18:01:19 +0000
Subject: MDB vs DB connect
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7484@lists.php.net to get a copy of this message
I can successfully connect via DB using the following code: $cbDSN = "mysql://me:mypass@unix(:/tmp/mysql.sock)/dbname"; $cbDB = DB::connect("$cbDSN"); if (DB::isError($cbDB)) { die ($cbDB->getMessage()); } But when I try this with MDB all I get is "MDB Error: connect failed" $cbDSN = "mysql://me:mypass@unix(:/tmp/mysql.sock)/dbname"; $cbDB=&MDB::connect($cbDSN); if (MDB::isError($cbDB)) { die ($cbDB->getMessage()); } I have tried removing the semi-colon from the socket path. I have tried with and without the ampersand on on line 2. I have tried all combinations of the above. I know the DSN info is good and I think the DSN format is good. I have the latest version of MDB. What am I doing wrong? -Jackson -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 jackson@coldfeetcreative.com cold feet presents Emma the world's easiest email marketing Learn more @ http://www.myemma.com

« previous php.pear.general (#7484) next »