Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Knowing if an Operation is Successful in MySql

by drewboy (Sexton)
on Nov 14, 2003 at 12:28 UTC ( [id://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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found