Re: submitting free-form text to a database

From: Date: Mon, 16 Jul 2001 14:50:24 +0000
Subject: Re: submitting free-form text to a database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58056@lists.php.net to get a copy of this message
If I remember the best things with M$ oriented database, is to to double it so "'" should be "''" and it should be ok. Anyway, that's what I do when I have to do stuff with those software. garman wrote: > > >===== Original Message From Duncan Hill <dhill@pct.edu> ===== > >On Mon, 16 Jul 2001, garman wrote: > > > >> box where the user enters a description of the item he is selling. > >> If the user's input contains an apostrophe (aka a single quote > >> "'") > >> or even a double quote, the code gets confused. > > > >addslashes() > > > >RTM :) > > I was originally using regular expressions to achieve the same effect as > addslashes(). But I switched to addslashes() anyway, and the problem > persists. > > My guess is that MS Access uses a method other than slashes to escape quotes. > > Matt > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Francis Fillion, BAA SI Broadcasting live from his linux box. And the maintainer of http://www.windplanet.com

« previous php.general (#58056) next »