Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread David Robley
On Tue, 13 Mar 2001 14:17, Kenneth R Zink II wrote: > Ok, I'm pretty sure I need to use the "addslashes" function, but I'm > not sure how to implement it. > > The 2 variables that I would need to addslashes are $sire and $dam. > > can someone please help me, this is new to me. > > Thanks. It's li

Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread Kenneth R Zink II
Ok, I'm pretty sure I need to use the "addslashes" function, but I'm not sure how to implement it. The 2 variables that I would need to addslashes are $sire and $dam. can someone please help me, this is new to me. Thanks. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 GMC S-15 Ext

Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread Gfunk
backslash for one or the other quote. pretty sure mysql doesn't support the standard SQL '' inside single quoted strings like oracle/sybase/mssql/whatever Gfunk - Original Message - From: "Reuben D Budiardja" <[EMAIL PROTECTED]> To: "Kenneth R Zink II"

Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread Reuben D Budiardja
Maybe you can use this function. I don't use MySQL, I use Oracle, and I build this function for Oracle, but I think the basic problem (and solution is the same). I think basically you need to escape ' by adding another '. Thus "Ken's" should become "Ken''s". function format_mysql_string($stri