Re: Re: How to escape apostrophe in HTML textbox exactly???

From: Date: Wed, 30 Jun 2004 19:41:42 +0000
Subject: Re: Re: How to escape apostrophe in HTML textbox exactly???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-189349@lists.php.net to get a copy of this message
Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm using PHP 4.3.1.... "Chris Shiflett" <shiflett@php.net> wrote in message news:20040630190125.10708.qmail@web52801.mail.yahoo.com... > --- Justin Patrin <papercrane@gmail.com> wrote: > > You also shouldn't need addslashes when putting it in. quoteSmart() in > > PEAR::DB is a *much* better option. > > That's great for those who use PEAR::DB, but it's not very safe to argue > against addslashes() based on what's in a specific PEAR module. > > I would argue that something like mysql_escape_string() is better than > addslashes(), so I agree with you for the most part anyway. :-) It all > depends on what database is being used and how. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming Fall 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/

« previous php.general (#189349) next »