Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Knowing if an Operation is Successful in MySql

by drewboy (Sexton)
on Nov 14, 2003 at 12:28 UTC ( #307030=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $dbh = DBI->connect("DBI:$driver:$database:$server:$port",$db_user,$db
    +_pass);
                  die "DBI error from connect:", $DBI::errstr unless $dbh;
    ...
    $dbh->disconnect;
    
    &success;
    
  2. or download this
    if ($insert_ok) {
    &success;} else
    {&failure;}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://307030]
Approved by broquaint
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2023-12-06 04:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (29 votes). Check out past polls.

    Notices?