If you need to remove all slashes from a string, heres a quick hack. Okay, if using stripslashesdeep, it will definitely replace any NULL to. This way, my data is already clean by the time I want to use it. I do it by passing the sql result and the sql columns to the function stripslashesmysqlresults. Here is code I use to clean the results from a MySQL query using the stripslashes function. If You want to delete all slashes from any table try to use my function: function noslashes(array) foreach(array as keyvalue) if(isarray(value)) valuenoslashes(value) arraytempkeyvalue else arraytempkeystripslashes(value) return arraytemp. Sometimes for some reason is happens that PHP or Javascript or some naughty insert a lot of backslash. Its not the job of the JS to modify the input string, server should make sure it can accept what its getting regardless.īoth are important to do, but calling one after the other on the same string cant be expected to work. Guardar Comillas Dobles En Mysql Php Update Plz User188962.
0 Comments
Leave a Reply. |