Jump to content

Backslashes being repeatedly added


nadeemshafi9

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/81430-backslashes-being-repeatedly-added/
Share on other sites

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 ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.