peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:
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.# Fetch row my ( $custno, $companyName, $address, $city, $state, $zip) = $SQL->fet +chrow_array(); print <<EndHTML; <script language="javascript"> fillCustomer('$custno', '$companyName', '$address', '$city', '$state', + '$zip'); </script> EndHTML
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Clean a database record off an apostrophe '
by japhy (Canon) on Jul 29, 2002 at 19:39 UTC | |
|
Re: Clean a database record off an apostrophe '
by dws (Chancellor) on Jul 29, 2002 at 19:36 UTC | |
|
Re: Clean a database record off an apostrophe '
by vladb (Vicar) on Jul 29, 2002 at 19:33 UTC | |
|
Re: Clean a database record off an apostrophe '
by aufrank (Pilgrim) on Jul 30, 2002 at 15:52 UTC |