Page 1 of 1

handling quotes in text to be inserted

Posted: Wed Jul 10, 2002 5:33 pm
by drjones
using PHP - trying to insert text with quotes in it - I have escaped the slashes in the text, but a user has stumped me by using multiple sets of double quotes.

The sql insert string is built dynamically.

Here's hoping that the fix is easy.

:?:

Posted: Wed Jul 10, 2002 5:35 pm
by llimllib

Code: Select all

addslashes($stringIWantToHaveCharsEscapedIn);