Re: Help with MDB2 executeMulitple

From: Date: Thu, 09 Oct 2008 18:57:38 +0000
Subject: Re: Help with MDB2 executeMulitple
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29324@lists.php.net to get a copy of this message
On Thu, Oct 9, 2008 at 1:51 PM, Jennifer Fink < jFink@nationalservicecenter.com> wrote: > I'm having problems with executeMultiple. I receive the following error > message & stack trace: > PHP Fatal error: Call to undefined method *MDB2_Error::execute()* in > C:\\PHP\\PEAR\\MDB2\\Extended.php on line 644 > PHP Stack trace: > PHP 1. {main}() C:\\Apache\\htsdocs\\maintenance\\test.php:0 > PHP 2. Maintenance->prepareExecuteMultiple() > C:\\Apache\\htsdocs\\maintenance\\test.php:32 > PHP 3. MDB2_Extended->executeMultiple() > C:\\Apache\\htsdocs\\maintenance\\class.Maintenance.php:348 > Hi Jennifer, It looks like the database connection object probably failed to set up its connection, resulting in you having an MDB2_Error object in hand instead. Your understanding of and usage of the *execute()* method is probably right... it's just that you'll need to verify that your database connection object did indeed succeed before trying to use it. Hope that helps... -- CRB

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