| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#10 (permalink) |
|
Registered User
Comfy Contributor
Joined in Mar 2006
Lives in UT
Hosted on SH92
165 posts
Gave thanks: 28
Thanked 0 times
|
Doing more research I think you're right; no need for stripslashes. This is what I found about addslashes: "PHP runs addslashes() on all GET, POST, and COOKIE data by default. Therefore you should not use addslashes() on strings that have already been escaped, this will cause double escaping." I'll just get rid of the strip slashes and see how that works.
__________________
~CJA~ 72.29.87.117 "Constantly lost in the world of PHP" is my personal understatement. |
|
|
|
|
|
#11 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jun 2008
Lives in UK
68 posts
Gave thanks: 5
Thanked 8 times
|
I've never really used addslashes myself, but after what these smart people said I did a quick Google and found pretty much the same.
I would still however look into the sprintf function. I'm sure you've already read the function page I linked to. :-) |
|
|
|