Help for this page

Select Code to Download


  1. or download this
    my $placeholders = '?,' x @cols;
    chop $placeholders;
    my $cols = join ',', @cols;
    my $sth = $dbh->prepare("INSERT INTO venue ($cols) VALUES ($placeholde
    +rs)") or die $dbh->errstr;
    $sth->execute(@vals);