Re: Re: Encryption Question

From: Date: Tue, 22 Jun 2004 18:52:28 +0000
Subject: Re: Re: Encryption Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188828@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] You should probably use mysql_escape_string or mysql_real_escape_string instead of addslashes and stripslashes. IMHO addslashes and stripslashes are pretty much useless. [/snip] That is an interesting take, why so?
Because it can easily cause more problems than it fixes. Actually, it's also a part of my dislike for the magic_quotes system... At the very least, mysql_(real_)escape_string should be always used for mysql code instead of addslashes as it *will* do the right thing. -- paperCrane <Justin Patrin>

« previous php.general (#188828) next »