Help for this page

Select Code to Download


  1. or download this
    my $sth = $DB->prepare( 'INSERT INTO Files ( File_Path, File_Name, Siz
    +e_Byte, Created, Modified, Accessed, Type ) VALUES ( ?,?,?,?,?,?,? )'
    + );
    foreach my $entry (@data)
    ...
        # do whatever value checking here ... checking for 7 values, etc.
        $sth->execute( @db_values );
    }
    
  2. or download this
    $sth->execute( @db_values )
      or warn $DB->errstr();