Re: [PHP] addslashes against single and double quotes

2001-03-09 Thread Richard Lynch
This is the source of your problems. Use HTMLEntities() or URLEncode() or something before you try to put your string in that. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.

[PHP] addslashes against single and double quotes

2001-03-08 Thread Terry Romine
I'm having some problems with using addslashes($string) for preparing a text blob for a MySQL database. The $string can have single or double quotes in it, and depending on how I pass it on to the insert, it seems to work only for either single or double, but not for both. Input can be: