|Perl: the Markov chain saw|
mySQL Query Problemby kidd (Curate)
|on Feb 11, 2003 at 16:51 UTC||Need Help??|
kidd has asked for the
wisdom of the Perl Monks concerning the following question:
Hello... Im having some problems with adding info to mySQL database.. Here is the code that inputs the information to the database:
The problem resides in the variable $msg that has this value: tengo todo por aprender ¿quien quiere enseñarme?
The problem I figured out is the ? that conflicts with the prepare statement.
I tried to escape it with something likes this: $msg = $dbh->quote($msg);
But without success...can anyone tell me how can I safely escape the ?
By the way...Im using the DBD::mySQL module...