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

From: Date: Thu, 19 Sep 2002 05:59:23 +0000
Subject: RE: [PHP-WIN] Inserting text with single quotes into database
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15897@lists.php.net to get a copy of this message
Hi Lanham Use addslashes() if gpc magic quotes is off. Cheers Rich -----Original Message----- From: Lanham Rattan [mailto:lanham@montrose.net] Sent: 18 September 2002 14:40 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 (#15897) next »