RE: [PHP] submitting free-form text to a database

From: Date: Mon, 16 Jul 2001 14:37:28 +0000
Subject: RE: [PHP] submitting free-form text to a database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58051@lists.php.net to get a copy of this message
> >===== 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. Probably '' Turn on magic_quotes_sybase in your php.ini file and it should work. -Rasmus

« previous php.general (#58051) next »