Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

RE: [PHP3] [HOW TO] Passing serialized data around From: Colin Viebrock (cmv <email protected>)
Date: 03/29/99

> After reading up on AddSlashes/StripSlashes I must confess that you are
> absolutely right.. sigh (mental note: RTFM) The original post of mr Colin
> Viebrock said though:
>
> > If you are storing serialized data in a database, you need to
> > serialize() the data, then addslashes(), then stick it in the DB.
> >
> > When you pull it out, stripslashes(), then unserialize().
>
> So, just don't use StripSlashes and everything works fine! :)

Well, the very next paragraph in my original post said:

> [Your server may be configured so the addslashes and stripslashes
> are automagically done for you.]

__________________________________________________________________
Colin Viebrock easyDNS Technologies
                                  ... be the master of your domain
                                            http://www.easyDNS.com

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>