Help for this page

Select Code to Download


  1. or download this
    my $dsn          = 'NULL';
    my $db_user_name = 'NULL';
    my $db_password  = 'NULL';
    
    my $dbh = DBI->connect($dsn, $db_user_name, $db_password) || die $dbh-
    +>errstr;
    
  2. or download this
      $query->execute() || die $dbh->errstr;
    
    ...
            push( @results, $a );
        }
        return @results;
    
  3. or download this
    my $records = $query->fetchall_arrayref;
    return @$records;
    
  4. or download this
    WHERE ID = \'$_[0]\'