RE: [PEAR] problem using Pear's DB layer

From: Date: Fri, 04 Apr 2003 10:09:14 +0000
Subject: RE: [PEAR] problem using Pear's DB layer
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4640@lists.php.net to get a copy of this message
hi, Thnaks for all your replies! connecting to the database is not the problem (myPHPadmin, and other sites). i think the script can't find the Pear class. when i get the error message using if (DB::isError($db)) { die ($dbTiki->getMessage()); } this is the error message Fatal error: Call to a member function on a non-object in C:\Program Files\BigApache\Apache\htdocs\PEAR.php on line 33 Thanks again for your help Tim > -----Message d'origine----- > De : luis [mailto:luis@fuegolabs.com] > Envoyé : mercredi 2 avril 2003 20:16 > À : tfletcher@netfactoriel.com; 'Alan Richmond'; > pear-general@lists.php.net > Objet : RE: [PEAR] problem using Pear's DB layer > > > Add some print("foo"); statements to know where the script is dying my > guess > Is that Php can't find the DB.php class > > -----Original Message----- > From: Tim [mailto:tfletcher@netfactoriel.com] > Sent: Wednesday, April 02, 2003 1:08 PM > To: Alan Richmond; pear-general@lists.php.net > Subject: RE: [PEAR] problem using Pear's DB layer > > yep, sorry > i was playing around with the script to get it to work! > > it should look like this: > $dsn = "mysql://$user:$pass@$host/$db_name"; > > but still the same problem :( > > Thanks > t. > > > -----Message d'origine----- > > De : Alan Richmond [mailto:alan@aardwolfweb.com] > > Envoyé : mercredi 2 avril 2003 18:03 > > À : tfletcher@netfactoriel.com; pear-general@lists.php.net > > Objet : RE: [PEAR] problem using Pear's DB layer > > > > > > ] $db_name = 'spip_marcou'; > > ] // Data Source Name: This is the universal connection string > > ] $dsn = "mysql://$user:$pass@$host"; > > ] print($dsn); > > > > > > Tim, > > You're not passing in the $db_name. > > > > -Alan > > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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