Help for this page

Select Code to Download


  1. or download this
    for ( 0 .. $#fields) {
       %sql_data = $fields[$_];
      ... insert into DB ...
    }
    
  2. or download this
    for ( 0 .. $#fields) {
       $sql_data{'description'}   = $fields[$_]{'description'};
    ...
       $sth = $dbh->prepare($stmt);
       $sth->execute(values %sql_data );
    }