NYCPHP Meetup

NYPHP.org

[nycphp-talk] Best practices for form input/output between PHP & MySQL?

Chris Shiflett shiflett at php.net
Wed Sep 17 18:30:43 EDT 2003


--- Analysis & Solutions <danielc at analysisandsolutions.com> wrote:
> By the way your talking, it sounds like you're using stripslashes
> after pulling stuff out of the database -- before displaying it.
> Am I reading you right?
> 
> If so, that's not needed and leads to weird things like you're
> talking about.
> 
> If not, where are you using it?
> 
> You only need to use it _once_, before putting items into a query.

I think you mean to imply the use of addslashes() when generating your SQL
query. I just wanted to clarify that.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



More information about the talk mailing list