[thelist] replacing whacks in PHP

Joel Canfield joel at spinhead.com
Sun Jul 7 17:19:01 CDT 2002


> When you are entering the text to the database, you use the
> addslashes() function:
> $sometext = addslashes($sometext);
> then when you retrieve it from the db, use the
> stripslashes():
> $sometext = stripslashes($sometext);
> Nan

I *knew* it should be easy. Works like a charm!

Too bad the documentation doesn't return this info no matter what I search
for.

Thanks so very much, Nan.

joel



More information about the thelist mailing list