Help for this page

Select Code to Download


  1. or download this
    my $dbh = vol::connect_new($config{'db'}{qw(db_host_name db_name db_us
    +er db_pw)});
    
  2. or download this
    sub connect_new {
       my($host,$db,$user,$pw) = @_;
    ...
       return (DBI->connect($dsn,$user,$pw,
          {PrintError => 0, RaiseError => 1}));
    }