Re: Mdb2 executeMultiple results in: Fatal error (Call to undefined function: bindvaluearray)
| From: | Lukas Smith | Date: | Fri, 07 Jul 2006 21:44:09 +0000 |
| Subject: | Re: Mdb2 executeMultiple results in: Fatal error (Call to undefined function: bindvaluearray) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24596@lists.php.net to get a copy of this message | ||
Kaiser, Patrick wrote:
Hi, I'm having trouble using mdb2's executeMultiple feature, here is my code: require_once 'MDB2.php'; $mdb2 =& MDB2::connect('mysql://[user]:[pw]@localhost/[db]'); // my data to insert looks like this, this is the first of about 500 items in the $data array $data-Array (there is probably an error in your prepared statement. if (PEAR::isError($prepare)) { var_dump($prepare->getMessage().' - '.$prepare->getUserinfo()); } regards, Lukas[0] => Array ( [film_id] => 20060 [is_active] => 1 [titel] => Amadeus [laenge] => 160 [originaltitel] => Amadeus [darsteller] => F. Murray Abraham; Tom Hulce; ElizabethBerridge[regisseur] => Milos Forman [drehbuch] => Peter Shaffer [drehjahr] => 1983 [herstellungsland] => USA [genre] => Biografie; Drama [neustart] => N [fsk] => 12 [kinderfilm] => N [kurzinhalt] => Die letzten zehn Lebensjahre von .. [zitat_internet] => "Mozart, von Regisseur Forman .."(Lexion des Internationalen Films)[transaktionskennzeichen] => )... ) // the prepare_sql $prepare_fd_query = "INSERT INTO [dbname] VALUES ( :film_id, :is_active, :titel, :laenge, :originaltitel, :darsteller, :regisseur, :drehbuch, :drehjahr, :herstellungsland, :genre, :neustart, :fsk, :kinderfilm, :kurzinhalt, :zitat_internet, :transaktionskennzeichen )"; $mdb2->loadModule('Extended'); $prepare = $mdb2->prepare( $prepare_fd_query );