Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect(
        'DBI:mysql:*********', 
        '*****', 
    ...
        WHERE partno="$img_name";
    ENDSQL
    $sth->execute;
    
  2. or download this
    my $sth = $dbh->prepare(<<END_SQL);
        UPDATE inventory 
        SET    img = ?, thumb = ? 
        WHERE  partno = ?;
    ENDSQL
    $sth->execute($short_name, $short_tname, $img_name);