Help for this page

Select Code to Download


  1. or download this
      use strict;  # <- NOTE!
      
    ...
      my $sth = $dbh->prepare("UPDATE Images SET strID=? WHERE strID=?");
      $sth->execute($strID, $strID);
      # ...
    
  2. or download this
      my $NewStrID = "foo";
      my $OldStrID = "bar";
      my $sth = $dbh->prepare("UPDATE Images SET strID=? WHERE strID=?");
      $sth->execute($NewStrID, $OldStrID);
      # ...