Re: Single and Double quotes in SQL

2003-09-19 Thread Robert J Taylor
- Original Message - From: "Pablo Fischer" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Saturday, September 20, 2003 2:34 PM Subject: Single and Double quotes in SQL > Hi! > > I need to save some HTML text in a D

Re: Single and Double quotes in SQL

2003-09-19 Thread Robert J Taylor
- Original Message - From: "Pablo Fischer" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Saturday, September 20, 2003 2:34 PM Subject: Single and Double quotes in SQL > Hi! > > I need to save some HTML text in a D

Re: Single and Double quotes in SQL

2003-09-18 Thread simran
It sounds like you are not using placeholders in your SQL. See: http://www.stupidfool.org/perl/docs/perltut/dbi/dbiplace.html for more information... Using placeholders will take care of the correct escaping of characters automatically, and also will save you program becoming a security nightma

Re: Single and Double quotes in SQL

2003-09-18 Thread Oliver Schnarchendorf
On Sat, 20 Sep 2003 21:34:58 +, Pablo Fischer wrote: > I need to save some HTML text in a DataBase (MySql, using DBI). However > some HTML text will have single and double quotes, so.. how can I save > them?, for example: > It's so funny $html_text =~ s/'/''/g; $html_text =~ s/"/""/g; Use the

Single and Double quotes in SQL

2003-09-18 Thread Pablo Fischer
Hi! I need to save some HTML text in a DataBase (MySql, using DBI). However some HTML text will have single and double quotes, so.. how can I save them?, for example: It's so funny Thanks! Pablo -- Pablo Fischer Sandoval (pablo -arroba- pablo.com.mx) http://www.pablo.com.mx http://www.debianmex