Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect("DBI:mysql:$host", $user, $pass) ||
        die "Could not connect: $DBI::errstr\n";
    
  2. or download this
    my $sth = 
      $dbh->prepare("INSERT into people (fornavn, efternavn, 
    ...
                     values ($fornavn, $efternavn, $cpr, 
                             $adresse, $zip, $city,   
                             $tjenestested"));
    
  3. or download this
    my $sth = 
      $dbh->prepare("INSERT into people (fornavn, efternavn, 
    ...
    
    $sth->execute || die $dbh->errstr;
    $sth->finish  || die $dbh->errstr;