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);
}

Reply via email to