Help for this page

Select Code to Download


  1. or download this
    my $sql    = sprintf('INSERT INTO entry VALUES(%s, %s, %s, %s, %s, %s,
    + %s, %s, %s)',
            $dbh->quote($host),
    ...
            $dbh->quote($subj),
            $dbh->quote($score)
    );
    
  2. or download this
    my $sth = $dbh->prepare(  'INSERT INTO entry VALUES(?,?,?,?,?,?,?,?,?)
    +'  );
    $sth->execute( $host, $filename, $datestamp, 
                   $type, $size,     $from,     
                   $to,   $sub,      $score
    );