PHP Filter for special characters before passing to sql database

Chandler

New Member
How can I have my code replace the body text rather than just "returning":\[code\]if($body == "Gar?on") return;\[/code\]Also, since == is looking for exact string of text, how do I make it look for the body containing "Gar?on"?Essentially, I'm trying to build in a filter to change "Gar?on" to "Garcon" since the special "?" character comes up "null" in my database.Thanks for your help.
 
Back
Top