nadeemshafi9 Posted December 13, 2007 Share Posted December 13, 2007 hello i have magic quotes turned on in my other applications when i insert stuff into a db backslashes are added to escape single quotes and when i bring the data out they dont come out but when teh data goes in teh slashes are added to escape again. i have one application where the slashes come out and then another slash is added to the other slash meaning evertime i update a bespoke CMS page the slashes keep getteing added and increasing. any help any suugestions, i am coding these applications thanks Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 13, 2007 Share Posted December 13, 2007 you can remove the slashes before you add another slashes so you have to stripslashes before you addslashes Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted December 13, 2007 Author Share Posted December 13, 2007 you can remove the slashes before you add another slashes so you have to stripslashes before you addslashes is this a proper way ? imean i dont wana be added code to cover a problem ? my other apps dont have this problem, what could i be dong wrong ? Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 13, 2007 Share Posted December 13, 2007 i dont see any problem with that . if you only use adslashes for sql injection purpose then then try mysql scape string to avoid that slashes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.