Help for this page

Select Code to Download


  1. or download this
    my $sth=$dbh->prepare($MYSQL) or die "Could not prepare $MYSQL: $DBI::
    +errstr\n";
    ...etc. for all connects, executes, etc.
    
  2. or download this
    $dbh->trace(2);
    
  3. or download this
    my $string = "find me";
    my $newstring = $dbh->quote($string) or die "Could not quote $string: 
    +$DBI::errstr\n";
    print "($string) has become ($newstring)\n";
    
  4. or download this
    my $bazfind = shift || "12";
    
    ...
      or die qq!Could not execute $FOOBAR_SQL with "$bazfind": $DBI::errst
    +r\n!;
    
    ...etc. etc.