Quote:
Originally Posted by Lalolyen
can do a streplace for ' to ' But you'll have to do the sting replace in quotes instead of apostrophies =).
Something like str_replace("'","'") there should be some other perameters, yes but thats the gist of it.
To make it safe, I'd also do another thats str_replace('"','"e;') to get rid of any escaping quotes =)
|
If
magic-quotes-gpc is turned on in your php.ini, you shouldn't have to worry about it. You can turn it on for an individual page by using ini_set("magic-quotes-gpc","On").
This can also be done with the PHP command
addslashes() on a per-command basis.