Re: Pear ::DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For PEAR-related questions, you probably will find better support on the
PEAR mailing lists (php.pear.general), which already has a large, helpful
archive.

_________________________
----- Original Message -----
From: "Muhammad Imran" <imran@sdpi.org>
To: <php-windows@lists.php.net>
Sent: Wednesday, November 05, 2003 1:24 PM
Subject:  Pear ::DB


I am using Pear::DB package, Can anybody help me if I have array of values
and I want to prepare the insert statements through those arrays.

Below is the example which I find on every site but not found what I need,
please help me.

Thank you,
Imran

  $alldata = array(  array(1, 'one', 'en'),
                   array(2, 'two', 'to'),
                   array(3, 'three', 'tre'),
                   array(4, 'four', 'fire'));
$sth = $dbh->prepare("INSERT INTO numbers VALUES(?,?,?)");

$dbh->executeMultiple($sth, $alldata);
}

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux