Re: Problem with PEAR::DB 1.6.x
| From: | Tommy Ipsen | Date: | Tue, 04 May 2004 13:34:24 +0000 |
| Subject: | Re: Problem with PEAR::DB 1.6.x | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12298@lists.php.net to get a copy of this message | ||
Peter Valicek - Senior Cluster Engineer wrote:
##instancer.php require_once 'DB.php'; $my = DB::connect( $databaseMY['dsn'], $databaseMY['options'] ); $my->setFetchMode(DB_FETCHMODE_ASSOC); ##home.php $my->disconnect();Perhaps: $my =& DB::connect( $databaseMY['dsn'], $databaseMY['options'] ); See: http://pear.php.net/manual/en/package.database.db.intro-connect.php Cheers, Tommy