Do you really need to use stripslashes when retrieving the data?
Wouldnt stripslashes only affect magic quotes or already added slashes,
I mean when you addslashes to the SQL the slashes are indeed removed
when inserted in the table.
--
--
Kim Steinhaug
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 fixe
[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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jay Blanchard wrote:
Good morning gurus!
I am encrypting some data on one server and now I am attempting to decrypt on another
server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation
vector). It is almost working but I seem to still have a little problem, that data is
m
4 matches
Mail list logo