Re: Is this a bug with MDB2_Extended executeMultiple?

From: Date: Sat, 02 Feb 2008 12:59:39 +0000
Subject: Re: Is this a bug with MDB2_Extended executeMultiple?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28505@lists.php.net to get a copy of this message
Hi Dmitri,
$mdb2->loadModule('Extended', null, false); $alldata = array(array(1, 'one', 'en'),
                array(2, 'two', '#FFCC99'),
                array(3, 'three', 'tre'),
                array(4, 'four', 'fire'));
$sth = $mdb2->prepare('INSERT INTO numbers VALUES (?, ?, ?)'); $mdb2->extended->executeMultiple($sth, $alldata); I get an error, a stange Pear error: MDB2 Error: not found Usually this 'not found' means that a module is not installed.
in this case a 'not found' error is most probably due to a missing placeholder. You can get a more detailed message calling getUserInfo(): ================================== $res = $mdb2->extended->executeMultiple($sth, $alldata); if (PEAR::isError($res)) { echo 'ERROR: '. $res->getMessage(). ' :: ' . $res->getUserInfo(); } ================================== HTH Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 25 Mb, 150 Mb di spazio web e molto di piщ! Registrati gratis: http://www.quipo.it

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