Help for this page

Select Code to Download


  1. or download this
            my $sql = 'INSERT INTO test_table VALUES (?,?,?,?,?,?)';
            my $sth = $dbh->prepare($sql);        
    ...
            $sth->bind_param(5, "$date $time");
            $sth->bind_param(6, $line_count);
            $sth->execute();
    
  2. or download this
            my $sql = <<EOSQL;
    
    ...
                          "$date $time", 
                          $line_count,
                          );