RE: [PHP-WIN] Inserting text with single quotes into database

From: Date: Wed, 18 Sep 2002 21:47:35 +0000
Subject: RE: [PHP-WIN] Inserting text with single quotes into database
Groups: php.windows 
Request: Send a blank email to php-windows+get-15896@lists.php.net to get a copy of this message
I use addslashes() frequently, although urlencode works too. I find addslashes to be cleaner. -Dash -----Original Message----- From: Lanham Rattan [mailto:lanham@montrose.net] Sent: Wednesday, September 18, 2002 2:40 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Inserting text with single quotes into database 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. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#15896) next »