Posted By

fugue on 12/29/06


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

umang_nine
ipilya
icecreamboyy


Write to MySQL database


 / Published in: Perl
 

  1. $sth="INSERT INTO...";
  2. $sth=$dbh->prepare($stmt);
  3. if(!$sth->execute) {
  4. print "Could not write to database\n";
  5. die;
  6. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: alperyilmaz on July 18, 2008

I think first line should read: $stmt="INSERT INTO...";

You need to login to post a comment.