Inserting text with single quotes into database
| From: | Lanham Rattan | Date: | Wed, 18 Sep 2002 21:39:51 +0000 |
| Subject: | Inserting text with single quotes into database | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15895@lists.php.net to get a copy of this message | ||
I am trying to insert text into a text database field that contains single
quotes. What it the best method?
I am currently doing a URLENCODE($text) upon insertion, then
STRIPSLASHES(URLDECODE($text)) to view.
Lanham.