in reply to Re: Escaping then un-escaping an apostrophe
in thread Escaping then un-escaping an apostrophe
$SQL = "UPDATE $regtable SET favorites='$favorites' WHERE ID='$ID'"; &Do_SQL; sub Do_SQL{ eval { $sth = $dbh->prepare($SQL); }; # end of eval # check for errors if($@){ $dbh->disconnect; print "Content-type: text/html\n\n"; print "An ERROR occurred! $@\n"; exit; } else { $sth->execute; } # end of if/else return ($sth); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Escaping then un-escaping an apostrophe
by wind (Priest) on Mar 10, 2011 at 21:09 UTC | |
|
Re^3: Escaping then un-escaping an apostrophe
by Anonymous Monk on Mar 10, 2011 at 21:07 UTC |