my $sth = $dbh->prepare(" INSERT INTO `trial` ( User, Time ) VALUES ( ?, ? ) "); foreach my $i (0..$#array1) { $sth->execute($array1[$i], $array2[$i]); }
In reply to Re: Inserting 2 arrays into 2 field in MySQL
by ikegami
in thread Inserting 2 arrays into 2 field in MySQL
by poolboi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |