Help for this page

Select Code to Download


  1. or download this
    use DBI;
    my $dbh = DBI->connect( ... );
    my $sth = $dbh->prepare( "INSERT INTO table VALUES ( ?, ?, ? )" ) or d
    +ie $DBI->errstr;
    $sth->execute( $name, $address, $comment ) or die $DBI->errstr;
    
  2. or download this
    INSERT INTO table VALUES ( $name, $address, $comment )