drewboy has asked for the wisdom of the Perl Monks concerning the following question:
$title = $in{'title'};
then this is printed to the mysql table when i call this script. However, whenever I add a quotation mark to the title (in the title field in the html form), say like Bro's Graduation, I get an error and it doesn't add to the sql table. may i ask for some suggestions on how to get around this problem? i've read some stuff by searching, but with no success. i clumsily created a subroutine for adding slashes (to escape the 's) for it but that did more harm than good.
please help! thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Escaping characters
by DamnDirtyApe (Curate) on Dec 01, 2002 at 21:14 UTC | |
|
Re: Escaping characters
by graff (Chancellor) on Dec 01, 2002 at 21:26 UTC | |
|
Re: Escaping characters
by adrianh (Chancellor) on Dec 01, 2002 at 21:27 UTC | |
|
Re: Escaping characters
by hawtin (Prior) on Dec 01, 2002 at 21:16 UTC | |
|
Re: Escaping characters
by drewboy (Sexton) on Dec 02, 2002 at 06:13 UTC | |
by rdfield (Priest) on Dec 02, 2002 at 10:04 UTC |