in reply to Writing to DB with quotes
this also lets you reuse the prepared statement:$sth_2 = $dbh->prepare("UPDATE options SET trend = ? WHERE ticker = ?" +); $sth_2->execute( $trend, $ticker );
$sth_2->execute( $other_trend, $other_ticker );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Writing to DB with quotes
by lhoward (Vicar) on Jun 29, 2006 at 12:12 UTC |