Help for this page

Select Code to Download


  1. or download this
    $sth = $dbh->prepare('UPDATE sometable SET value1=? WHERE value2=?');
    $sth->execute('something with \n in it', 'something else which inciden
    +tally has a \n in it');
    
  2. or download this
    $sth = $dbh->prepare('UPDATE sometable SET value1=? WHERE value2=? OR 
    +value2=?');
    $sth->execute("something with \n in it", "something else which inciden
    +tally has a \n in it", "something else which incidentally has \r\n in
    + it");