"be consistent" | |
PerlMonks |
Clean a database record off an apostrophe 'by peacemaker1820 (Pilgrim) |
on Jul 29, 2002 at 19:15 UTC ( [id://186055]=perlquestion: print w/replies, xml ) | Need Help?? |
peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks.
I have a database of customers and their addresses. Some of the words in my address fields in the database contain apostrophe '. Now, when i get the address field , i pass it to javascript method for some more work. here is part of the code: my problem is that it gives me a runtime error when ever my address record contains an apostrophe character ('). My idea is that somehow i need to add an escape character in that record before the apostrophe, but i do not want to do that. Any other ideas, guys? Greatly appreciated.
Back to
Seekers of Perl Wisdom
|
|