Re: [PHP] stripslashes() when reading from the DB

2004-07-12 Thread Jordi Canals
Philip Olson wrote: I usually stripslashes() when I read the info from the database (MySQL). Because the information was inserted after adding slashes, or the system has magic_quotes_gpc set to ON. To add further comment. If you're required to run stripslashes() on data coming out of your databa

Re: [PHP] stripslashes() when reading from the DB

2004-07-12 Thread John W. Holmes
Jordi Canals wrote: I usually stripslashes() when I read the info from the database (MySQL). Because the information was inserted after adding slashes, or the system has magic_quotes_gpc set to ON. I remember being taught this lesson long ago. :) You do not need to strip slashes from the data be

Re: [PHP] stripslashes() when reading from the DB

2004-07-12 Thread Philip Olson
> > I usually stripslashes() when I read the info from the database (MySQL). > > Because the information was inserted after adding slashes, or the > > system has magic_quotes_gpc set to ON. > > > > I'd like to know, if I can do stripslashes() directly, as it is suposed > > that all data was ins

Re: [PHP] stripslashes() when reading from the DB

2004-07-12 Thread Justin Patrin
On Mon, 12 Jul 2004 20:45:12 +0200, Jordi Canals <[EMAIL PROTECTED]> wrote: > Hi, > > I usually stripslashes() when I read the info from the database (MySQL). > Because the information was inserted after adding slashes, or the > system has magic_quotes_gpc set to ON. > > I'd like to know, if I

[PHP] stripslashes() when reading from the DB

2004-07-12 Thread Jordi Canals
Hi, I usually stripslashes() when I read the info from the database (MySQL). Because the information was inserted after adding slashes, or the system has magic_quotes_gpc set to ON. I'd like to know, if I can do stripslashes() directly, as it is suposed that all data was inserted into DB after