Help for this page

Select Code to Download


  1. or download this
    $dbh = db_connect($database,$user,$password);
    
  2. or download this
    sub db_connect {
       ($database,$user,$password) = @_;
    ...
       or printError("Unable to connect to $database" . $DBI::errstr);
       return $h;
    }
    
  3. or download this
    # script config file
     $database = "shafi";
     $user = "shafi"; 
     $password ="shafi";
    1;
    
  4. or download this
    =================================================
    #!/usr/bin/perl
    ...
    
        $db_handle->disconnect();
    ===================================================