...

View Full Version : example for requirment of addslash



yashar
10-15-2009, 10:02 AM
hello all,

i start to do some work with php, two questions first i'm using php-dev, do you recommend any other editor?

second i'm confused with magic_quotes, in my ini file setting is :
local value master value
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off

and i dont use any addslash or strip slash in my code but when i put a sentence like "this's is " a /test" in my form to push it in mysql field, it saved exactly same and i can retrieve it same either, so why do people use addslash and strip salsh? would you give me some examples to test?

abduraooft
10-15-2009, 11:07 AM
Take a look at http://codingforums.com/showthread.php?t=144149
After stripping the slashes added by magic_quote settings, you'd need to clean all external data(from GPC) of type string using mysql_real_escape_string()



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum