Hallo BRIAN,

I like your solution with foreach and bind_param. Just add the prepare
like this:
$sth = $dbh->prepare("INSERT INTO AllMid_Data VALUES(?".(",?" x 21).")")
 or print "Error with INSERT _prepare_ $DBI::errstr\n";

Tuesday, September 7, 2004, 9:31:15 PM, you wrote:
CBDB> This should work:
$sth->>bind_param(1, undef);
$sth->>bind_param($_+2, $data[$_]) foreach 0..20;
$sth->>execute() or print "something";

cu
 Wieland                            mailto:[EMAIL PROTECTED]

Reply via email to